1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

- 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)
This commit is contained in:
Rong-En Fan 2008-05-17 13:21:31 +00:00
parent a3aa26aed6
commit 75c5c44636
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=213191
2 changed files with 17 additions and 1 deletions

View File

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

View File

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