From c46870f6ad01452c00b53c4599110ebbf79decb2 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 18 Sep 2008 08:29:00 -0400 Subject: [PATCH] Fixed bugs 207 and 208 - Website symlinks in wrong client directory created. - Standard indes page gets replaced when a alias domain is added. --- install/lib/mysql.lib.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/install/lib/mysql.lib.php b/install/lib/mysql.lib.php index b930bba..e24fcc6 100644 --- a/install/lib/mysql.lib.php +++ b/install/lib/mysql.lib.php @@ -171,7 +171,7 @@ // Check der variablen function quote($formfield) { - return addslashes($formfield); + return mysql_real_escape_string($formfield); } // Check der variablen @@ -356,6 +356,7 @@ $database_name = $this->dbName; } $result = mysql_query("SHOW TABLES FROM `$database_name`"); + $tb_names = array(); for ($i = 0; $i < mysql_num_rows($result); $i++) { $tb_names[$i] = mysql_tablename($result, $i); } -- Gitblit v1.9.1