Escape from slashville
git-svn-id: https://develop.svn.wordpress.org/trunk@1545 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f5b015ecd3
commit
46c39cd718
@ -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
Block a user