From fd8e2b5317e8c43aa476a57bbf555c444049f536 Mon Sep 17 00:00:00 2001
From: quentusrex <quentusrex@ispconfig3>
Date: Fri, 31 Oct 2008 08:27:08 -0400
Subject: [PATCH] This is here to stop the variable overflow bug when setting a mail user quota higher than 2GB. 

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