diff options
Diffstat (limited to 'mail/postfixadmin/files/patch-functions.inc.php')
-rw-r--r-- | mail/postfixadmin/files/patch-functions.inc.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mail/postfixadmin/files/patch-functions.inc.php b/mail/postfixadmin/files/patch-functions.inc.php new file mode 100644 index 000000000000..180d64a5830a --- /dev/null +++ b/mail/postfixadmin/files/patch-functions.inc.php @@ -0,0 +1,16 @@ +--- ./functions.inc.php.orig 2005-01-07 07:00:00.000000000 +0800 ++++ ./functions.inc.php 2008-05-17 21:19:54.000000000 +0800 +@@ -129,7 +129,12 @@ + if (get_magic_quotes_gpc () == 0) + { + if ($CONF['database_type'] == "mysql") $escaped_string = mysql_real_escape_string ($string); +- if ($CONF['database_type'] == "mysqli") $escaped_string = mysqli_real_escape_string ($string); ++ if ($CONF['database_type'] == "mysqli") ++ { ++ $link = db_connect (); ++ $escaped_string = mysqli_real_escape_string ($link, $string); ++ mysqli_close ($link); ++ } + if ($CONF['database_type'] == "pgsql") $escaped_string = pg_escape_string ($string); + } + else |