remove magic_quotes check; it`s 2016 after all

This commit is contained in:
czaks
2016-05-05 10:29:13 +02:00
parent 4c827cf105
commit 19b70663d7
2 changed files with 1 additions and 21 deletions

10
mod.php
View File

@@ -12,16 +12,6 @@ require_once 'inc/mod/auth.php';
if ($config['debug'])
$parse_start_time = microtime(true);
// Fix for magic quotes
if (get_magic_quotes_gpc()) {
function strip_array($var) {
return is_array($var) ? array_map('strip_array', $var) : stripslashes($var);
}
$_GET = strip_array($_GET);
$_POST = strip_array($_POST);
}
$query = isset($_SERVER['QUERY_STRING']) ? rawurldecode($_SERVER['QUERY_STRING']) : '';
$pages = array(