Stripslashes doesn't work on arrays. Add stripslashes_deep(). Props: Mike Little

git-svn-id: https://develop.svn.wordpress.org/trunk@2700 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-07-06 01:12:38 +00:00
parent b3f7bd726c
commit 537b91b582
2 changed files with 14 additions and 4 deletions
+10
View File
@@ -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);