cvs: phpdoc-zh /security database.xml magicquotes.xml
| From: | Xiao shengwen | Date: | Thu, 27 Apr 2006 17:05:59 +0000 |
| Subject: | cvs: phpdoc-zh /security database.xml magicquotes.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2827@lists.php.net to get a copy of this message | ||
yincheng Thu Apr 27 17:05:59 2006 UTC
Modified files:
/phpdoc-zh/security database.xml magicquotes.xml
Log:
update to en version
http://cvs.php.net/viewcvs.cgi/phpdoc-zh/security/database.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc-zh/security/database.xml
diff -u phpdoc-zh/security/database.xml:1.5 phpdoc-zh/security/database.xml:1.6
--- phpdoc-zh/security/database.xml:1.5 Wed Aug 31 15:07:25 2005
+++ phpdoc-zh/security/database.xml Thu Apr 27 17:05:58 2006
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.5 $ -->
-<!-- $Author: dallas $ -->
-<!-- EN-Revision: 1.11 Maintainer: lm92 Status: ready -->
+<!-- $Revision: 1.6 $ -->
+<!-- $Author: yincheng $ -->
+<!-- EN-Revision: 1.12 Maintainer: lm92 Status: ready -->
<!-- CREDITS: dallas -->
<chapter id="security.database">
<title>Êý¾Ý¿â°²È«</title>
@@ -82,12 +82,12 @@
// ´æ´¢ÃÜÂëÉ¢ÁÐ
$query = sprintf("INSERT INTO users(name,pwd) VALUES('%s','%s');",
- addslashes($username), md5($password));
+ pg_escape_string($username), md5($password));
$result = pg_query($connection, $query);
// ·¢ËÍÇëÇóÀ´ÑéÖ¤Óû§ÃÜÂë
$query = sprintf("SELECT 1 FROM users WHERE name='%s' AND pwd='%s';",
- addslashes($username), md5($password));
+ pg_escape_string($username), md5($password));
$result = pg_query($connection, $query);
if (pg_num_rows($result) > 0) {
http://cvs.php.net/viewcvs.cgi/phpdoc-zh/security/magicquotes.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc-zh/security/magicquotes.xml
diff -u phpdoc-zh/security/magicquotes.xml:1.5 phpdoc-zh/security/magicquotes.xml:1.6
--- phpdoc-zh/security/magicquotes.xml:1.5 Wed Sep 7 13:35:00 2005
+++ phpdoc-zh/security/magicquotes.xml Thu Apr 27 17:05:59 2006
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.5 $ -->
-<!-- $Author: dallas $ -->
-<!-- EN-Revision: 1.7 Maintainer: lm92 Status: ready -->
+<!-- $Revision: 1.6 $ -->
+<!-- $Author: yincheng $ -->
+<!-- EN-Revision: 1.8 Maintainer: lm92 Status: ready -->
<!-- CREDITS: dallas -->
<chapter id="security.magicquotes">
<title>ħÊõÒýºÅ</title>
@@ -189,6 +189,7 @@
$_POST = array_map('stripslashes_deep', $_POST);
$_GET = array_map('stripslashes_deep', $_GET);
$_COOKIE = array_map('stripslashes_deep', $_COOKIE);
+ $_REQUEST = array_map('stripslashes_deep', $_REQUEST);
}
?>
]]>