aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2008-05-17 21:21:31 +0800
committerrafan <rafan@FreeBSD.org>2008-05-17 21:21:31 +0800
commitbbf703683974711700648d3071a65b0cfa7ee101 (patch)
tree700909c0467eb9412d1ccb2dc98310de47f2e42a /mail
parent1ecf98c50dbcd424e645cb74127dbb56f505e1d3 (diff)
downloadfreebsd-ports-gnome-bbf703683974711700648d3071a65b0cfa7ee101.tar.gz
freebsd-ports-gnome-bbf703683974711700648d3071a65b0cfa7ee101.tar.zst
freebsd-ports-gnome-bbf703683974711700648d3071a65b0cfa7ee101.zip
- Fix mysqli_real_escape_string syntax
- Bump PORTREVISION PR: ports/122735 Submitted by: Skalozubov Ilia <root at skinc.su> Approved by: maintainer timeout (1 month)
Diffstat (limited to 'mail')
-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