Stripslashes doesn't work on arrays. Add stripslashes_deep(). Props: Mike Little
git-svn-id: http://svn.automattic.com/wordpress/trunk@2700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -138,10 +138,10 @@ require_once(ABSPATH . WPINC . '/locale.php');
|
||||
|
||||
// If already slashed, strip.
|
||||
if ( get_magic_quotes_gpc() ) {
|
||||
$_GET = stripslashes($_GET );
|
||||
$_POST = stripslashes($_POST );
|
||||
$_COOKIE = stripslashes($_COOKIE);
|
||||
$_SERVER = stripslashes($_SERVER);
|
||||
$_GET = stripslashes_deep($_GET );
|
||||
$_POST = stripslashes_deep($_POST );
|
||||
$_COOKIE = stripslashes_deep($_COOKIE);
|
||||
$_SERVER = stripslashes_deep($_SERVER);
|
||||
}
|
||||
|
||||
// Escape with wpdb.
|
||||
|
||||
Reference in New Issue
Block a user