From 19b70663d7e786fca0425b53eb79412fd5987255 Mon Sep 17 00:00:00 2001 From: czaks Date: Thu, 5 May 2016 10:29:13 +0200 Subject: remove magic_quotes check; it`s 2016 after all --- mod.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'mod.php') diff --git a/mod.php b/mod.php index 5697e2b5..c005dcb5 100644 --- a/mod.php +++ b/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( -- cgit v1.3