FIX Constants magic_quotes handling needs function from Core

This commit is contained in:
Hamish Friedlander 2013-08-05 14:58:44 +12:00
parent 041466fe02
commit 5f9387c42c
2 changed files with 7 additions and 7 deletions

View File

@ -54,6 +54,13 @@ do {
///////////////////////////////////////////////////////////////////////////////
// GLOBALS AND DEFINE SETTING
function stripslashes_recursively(&$array) {
foreach($array as $k => $v) {
if(is_array($v)) stripslashes_recursively($array[$k]);
else $array[$k] = stripslashes($v);
}
}
/**
* A blank HTTP_HOST value is used to detect command-line execution.
* We update the $_SERVER variable to contain data consistent with the rest of the application.

View File

@ -164,13 +164,6 @@ function project() {
return $project;
}
function stripslashes_recursively(&$array) {
foreach($array as $k => $v) {
if(is_array($v)) stripslashes_recursively($array[$k]);
else $array[$k] = stripslashes($v);
}
}
/**
* @see i18n::_t()
*/