From a8d2566db2d8d151633b2d0cafd05e748076e3f8 Mon Sep 17 00:00:00 2001 From: Aidan Lister Date: Wed, 29 Sep 2004 15:12:42 +0000 Subject: [PATCH] Reverting, bug #30274 is simply not true git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@169552 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysql/functions/mysql-real-escape-string.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/mysql/functions/mysql-real-escape-string.xml b/reference/mysql/functions/mysql-real-escape-string.xml index a117a9db24..50fada2d39 100644 --- a/reference/mysql/functions/mysql-real-escape-string.xml +++ b/reference/mysql/functions/mysql-real-escape-string.xml @@ -1,5 +1,5 @@ - + @@ -88,7 +88,7 @@ mysql_query($query); // We didn't check $_POST['password'], it could be anything the user wanted! For example: $_POST['username'] = 'aidan'; -$_POST['password'] = "' OR ''='"; +$_POST['password'] = "' OR 1=1"; // This means the query sent to MySQL would be: echo $query;