Escape from slashville

git-svn-id: https://develop.svn.wordpress.org/trunk@1545 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-08-21 01:50:59 +00:00
parent f5b015ecd3
commit 46c39cd718
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);
}
// ==================================================================