|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-13 22:18 UTC] tomer at ivrit dot org dot il
[2004-10-13 23:26 UTC] tomer at ivrit dot org dot il
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 03:00:01 2025 UTC |
Description: ------------ It seems that mysql_real_escape_string fails to escape the string 'a"b`c'd/e\f' (without the surrounding quotes) right.. Reproduce code: --------------- While magic_quotes_gpc are off and submitting on a POST form: a"b`c'd/e\f $query = sprintf("UPDATE tbl SET field='%s'", mysql_real_escape_string($_POST['name'])); $result = mysql_query($query); Expected result: ---------------- The mysql_error() will be a syntax error of course.. Actual result: -------------- You have an error in your SQL syntax near 'd/e\f', ...