forked from leftypol/leftypol
remove magic_quotes check; it`s 2016 after all
This commit is contained in:
parent
4c827cf105
commit
19b70663d7
2 changed files with 1 additions and 21 deletions
10
mod.php
10
mod.php
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue