From 692f6f85f2cec1dfb4191fb4ec9a171291254c2a Mon Sep 17 00:00:00 2001
From: quentusrex <quentusrex@ispconfig3>
Date: Thu, 30 Oct 2008 10:08:42 -0400
Subject: [PATCH] This is to update the Ubuntu 8.04 Install guide to include the Jailkit info from the Debian Install guide. Also to test my commit access to the svn repo.

---
 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