Skip to content

Commit

Permalink
Added stripslashes_deep() (from Wordpress)
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskelly committed Oct 26, 2007
1 parent f83418f commit 62f4210
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions application/libraries/globals.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ function strip_slashes($text)
return $text;
}

/**
* @copyright Wordpress 2007 (GPL)
*
* @return mixed
**/
function stripslashes_deep($value)
{
$value = is_array($value) ?
array_map('stripslashes_deep', $value) :
stripslashes($value);

return $value;
}

function install_notification() { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Expand Down

0 comments on commit 62f4210

Please sign in to comment.