mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX Constants magic_quotes handling needs function from Core
This commit is contained in:
parent
041466fe02
commit
5f9387c42c
@ -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.
|
||||
|
@ -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()
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user