cvs: phpdoc-hu /reference/mysql/functions mysql-real-escape-string.xml
| From: | Bagi Levente L�szl� | Date: | Mon, 04 Oct 2004 20:04:26 +0000 |
| Subject: | cvs: phpdoc-hu /reference/mysql/functions mysql-real-escape-string.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-1116@lists.php.net to get a copy of this message | ||
bagilevi Mon Oct 4 16:04:26 2004 EDT
Modified files:
/phpdoc-hu/reference/mysql/functions mysql-real-escape-string.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/mysql/functions/mysql-real-escape-string.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc-hu/reference/mysql/functions/mysql-real-escape-string.xml
diff -u phpdoc-hu/reference/mysql/functions/mysql-real-escape-string.xml:1.6
phpdoc-hu/reference/mysql/functions/mysql-real-escape-string.xml:1.7
--- phpdoc-hu/reference/mysql/functions/mysql-real-escape-string.xml:1.6 Sat Sep 25 09:24:49 2004
+++ phpdoc-hu/reference/mysql/functions/mysql-real-escape-string.xml Mon Oct 4 16:04:23 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.16 Maintainer: bagilevi Status: ready -->
+<!-- EN-Revision: 1.20 Maintainer: bagilevi Status: ready -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 -->
<refentry id="function.mysql-real-escape-string">
<refnamediv>
@@ -93,7 +93,7 @@
// Nem vizsgáltuk meg a $_POST['jelszo'] változót, ami bármi lehet, amit csak a
felhasználó akar! Például:
$_POST['felhasznalo'] = 'aidan';
-$_POST['jelszo'] = "' OR 1=1";
+$_POST['jelszo'] = "' OR ''='";
// Ez azt jelenti, hogy a MySQL-nek küldött kérés a következõ:
echo $keres;
@@ -105,7 +105,7 @@
</para>
<screen>
<![CDATA[
-SELECT * FROM felhasznalos WHERE name='aidan' AND jelszo='' OR 1=1
+SELECT * FROM felhasznalos WHERE name='aidan' AND jelszo='' OR
''=''
]]>
</screen>
<para>
@@ -134,7 +134,7 @@
$ertek = stripslashes($ertek);
}
// Idézõjelezés, ha nem egész érték
- if (!is_int($ertek)) {
+ if (!is_numeric($ertek)) {
$ertek = "'" . mysql_real_escape_string($ertek) . "'";
}
return $ertek;