aboutsummaryrefslogtreecommitdiff
path: root/mail/postfixadmin
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2008-05-17 13:21:31 +0000
committerRong-En Fan <rafan@FreeBSD.org>2008-05-17 13:21:31 +0000
commit75c5c4463637bc4047f027930ba69620208410e2 (patch)
treeaa7ddf813a2f1296ab0fb09f806a614bae30314d /mail/postfixadmin
parenta3aa26aed686c82e233355e051706bf94b429bff (diff)
downloadports-75c5c4463637bc4047f027930ba69620208410e2.tar.gz
ports-75c5c4463637bc4047f027930ba69620208410e2.zip
Notes
Diffstat (limited to 'mail/postfixadmin')
-rw-r--r--mail/postfixadmin/Makefile2
-rw-r--r--mail/postfixadmin/files/patch-functions.inc.php16
2 files changed, 17 insertions, 1 deletions
diff --git a/mail/postfixadmin/Makefile b/mail/postfixadmin/Makefile
index fec527924703..8511e9ce2308 100644
--- a/mail/postfixadmin/Makefile
+++ b/mail/postfixadmin/Makefile
@@ -7,7 +7,7 @@
PORTNAME= postfixadmin
PORTVERSION= 2.1.0
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= mail www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= postfixadmin
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