Escape from slashville

git-svn-id: http://svn.automattic.com/wordpress/trunk@1545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-08-21 01:50:59 +00:00
parent db943e4a2e
commit 064773fcd8
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class wpdb {
// Format a string correctly for safe insert under all PHP conditions
function escape($str) {
return mysql_escape_string(stripslashes($str));
return addslashes($str);
}
// ==================================================================