FreeBSD Bugzilla – Attachment 86321 Details for
Bug 122735
[patch] Port mail/postfixadmin - incorrect syntax in mysqli_real_escape_string function
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 694 bytes, created by
Skalozubov Ilia
on 2008-04-13 21:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Skalozubov Ilia
Created:
2008-04-13 21:40:00 UTC
Size:
694 bytes
patch
obsolete
>--- functions.inc.php 2008-04-13 22:09:18.000000000 +0300 >+++ functions.inc.php 2008-04-13 22:09:32.000000000 +0300 >@@ -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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 122735
: 86321