Use addslashes() instead of esc_sql() in add_magic_quotes() to avoid the pretense of DB association. props miqrogroove

git-svn-id: http://svn.automattic.com/wordpress/trunk@12961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2010-02-04 23:05:13 +00:00
parent 7b81cdc30f
commit ca69d67041
1 changed files with 1 additions and 1 deletions

View File

@ -1390,7 +1390,7 @@ function add_magic_quotes( $array ) {
if ( is_array( $v ) ) { if ( is_array( $v ) ) {
$array[$k] = add_magic_quotes( $v ); $array[$k] = add_magic_quotes( $v );
} else { } else {
$array[$k] = esc_sql( $v ); $array[$k] = addslashes( $v );
} }
} }
return $array; return $array;