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:
@@ -532,6 +532,16 @@ function addslashes_gpc($gpc) {
|
||||
return $wpdb->escape($gpc);
|
||||
}
|
||||
|
||||
|
||||
function stripslashes_deep($value)
|
||||
{
|
||||
$value = is_array($value) ?
|
||||
array_map('stripslashes_deep', $value) :
|
||||
stripslashes($value);
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
function antispambot($emailaddy, $mailto=0) {
|
||||
$emailNOSPAMaddy = '';
|
||||
srand ((float) microtime() * 1000000);
|
||||
|
||||
Reference in New Issue
Block a user