Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
FIX Constants magic_quotes handling needs function from Core
  • Loading branch information
Hamish Friedlander committed Aug 5, 2013
1 parent 041466f commit 5f9387c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions core/Constants.php
Expand Up @@ -54,6 +54,13 @@
///////////////////////////////////////////////////////////////////////////////
// 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.
Expand Down
7 changes: 0 additions & 7 deletions core/Core.php
Expand Up @@ -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()
*/
Expand Down

0 comments on commit 5f9387c

Please sign in to comment.