cvs: phpdoc-fr /reference/mysql/functions mysql-real-escape-string.xml
| From: | Damien Seguy | Date: | Mon, 25 Oct 2004 16:47:03 +0000 |
| Subject: | cvs: phpdoc-fr /reference/mysql/functions mysql-real-escape-string.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-3539@lists.php.net to get a copy of this message | ||
dams Mon Oct 25 12:47:03 2004 EDT
Modified files:
/phpdoc-fr/reference/mysql/functions mysql-real-escape-string.xml
Log:
example update (synch en)
http://cvs.php.net/diff.php/phpdoc-fr/reference/mysql/functions/mysql-real-escape-string.xml?r1=1.16&r2=1.17&ty=u
Index: phpdoc-fr/reference/mysql/functions/mysql-real-escape-string.xml
diff -u phpdoc-fr/reference/mysql/functions/mysql-real-escape-string.xml:1.16
phpdoc-fr/reference/mysql/functions/mysql-real-escape-string.xml:1.17
--- phpdoc-fr/reference/mysql/functions/mysql-real-escape-string.xml:1.16 Thu Sep 30 17:07:19 2004
+++ phpdoc-fr/reference/mysql/functions/mysql-real-escape-string.xml Mon Oct 25 12:47:03 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.16 $ -->
-<!-- EN-Revision: 1.18 Maintainer: dams Status: ready -->
+<!-- $Revision: 1.17 $ -->
+<!-- EN-Revision: 1.20 Maintainer: dams Status: ready -->
<!-- Reviewed: yes -->
<refentry id="function.mysql-real-escape-string">
<refnamediv>
@@ -93,7 +93,7 @@
// Nous ne vérifions pas $_POST['password'], il peut contenir ce quel'utilisateur
veut ! Par exemple :
$_POST['username'] = 'aidan';
-$_POST['password'] = "' OR 1=1";
+$_POST['password'] = "' OR ''='";
// Cela signifie que la requête envoyée à MySQL sera :
echo $query;
@@ -105,7 +105,7 @@
</para>
<screen>
<![CDATA[
-SELECT * FROM users WHERE name='aidan' AND password='' OR 1=1
+SELECT * FROM users WHERE name='aidan' AND password='' OR
''=''
]]>
</screen>
<para>
@@ -136,7 +136,7 @@
}
// Protection si ce n'est pas un entier
- if (!is_int($value)) {
+ if (!is_numeric($value)) {
$value = "'" . mysql_real_escape_string($value) . "'";
}