Permalink
Browse files

FIX Constants magic_quotes handling needs function from Core

  • Loading branch information...
1 parent 041466f commit 5f9387c42cdcda9b906e39751c35660f8bdf3738 Hamish Friedlander committed Aug 5, 2013
Showing with 7 additions and 7 deletions.
  1. +7 −0 core/Constants.php
  2. +0 −7 core/Core.php
View
@@ -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.
View
@@ -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()
*/

0 comments on commit 5f9387c

Please sign in to comment.