Escape from slashville
git-svn-id: http://svn.automattic.com/wordpress/trunk@1545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
db943e4a2e
commit
064773fcd8
|
@ -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);
|
||||
}
|
||||
|
||||
// ==================================================================
|
||||
|
|
Loading…
Reference in New Issue