Skip to content

Commit 5d6bdc6

Browse files
committed
Remove magic_quotes handling
1 parent a487c60 commit 5d6bdc6

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

bootstrap.php

-19
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,6 @@
123123
ini_set('zlib.output_compression_level', '5');
124124
}
125125

126-
// Strip slashes from superglobals to avoid problems with PHP's magic_quotes.
127-
if (PHP_VERSION_ID < 50400 && get_magic_quotes_gpc()) {
128-
$_GET = stripslashes_deep($_GET);
129-
$_POST = stripslashes_deep($_POST);
130-
$_COOKIE = stripslashes_deep($_COOKIE);
131-
$_REQUEST = stripslashes_deep($_REQUEST);
132-
}
133-
134126
// Add the libraries and models directories to the include path.
135127
set_include_path(LIB_DIR. PATH_SEPARATOR . MODEL_DIR . PATH_SEPARATOR . get_include_path());
136128

@@ -148,14 +140,3 @@
148140

149141
// Define the theme directory path.
150142
define('THEME_DIR', defined('ADMIN') ? ADMIN_THEME_DIR : PUBLIC_THEME_DIR);
151-
152-
/**
153-
* Strip slashes recursively.
154-
*
155-
* @param array|string $value
156-
* @return array
157-
*/
158-
function stripslashes_deep($value)
159-
{
160-
return is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
161-
}

0 commit comments

Comments
 (0)