From 8a14553700a42141e7271bf795e327432664619c Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Wed, 14 Nov 2012 06:38:20 -0500
Subject: [PATCH] - nginx: added security checks when deleting vhost subdomains, so no paths still used by other subdomains or the main web get deleted accidently - added check for vhostsubdomains to remove beginning and trailing slashes from web path. - removed check for duplicate folder usage.

---
 interface/lib/classes/db_mysql.inc.php |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/interface/lib/classes/db_mysql.inc.php b/interface/lib/classes/db_mysql.inc.php
index 1506e5a..5ea448a 100644
--- a/interface/lib/classes/db_mysql.inc.php
+++ b/interface/lib/classes/db_mysql.inc.php
@@ -96,7 +96,8 @@
   }
 
   public function query($queryString) {
-    $this->queryId = parent::query($queryString);
+    parent::ping();
+	$this->queryId = parent::query($queryString);
     $this->updateError('DB::query('.$queryString.') -> mysqli_query');
     if($this->errorNumber) debug_print_backtrace();
     if(!$this->queryId) {

--
Gitblit v1.9.1