From c2c9e1d042b8eea785afdfa055d88a65e46ca2f8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Aug 2019 12:15:29 +0200 Subject: [PATCH] Fix warning --- htdocs/install/inc.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/htdocs/install/inc.php b/htdocs/install/inc.php index eab86b07136..54a718ef1fc 100644 --- a/htdocs/install/inc.php +++ b/htdocs/install/inc.php @@ -253,27 +253,6 @@ foreach ($handlers as $handler) if (empty($conf->loghandlers[$handler])) $conf->loghandlers[$handler]=$loghandlerinstance; } -// Removed magic_quotes -if (function_exists('get_magic_quotes_gpc')) // magic_quotes_* removed in PHP 5.4 -{ - if (get_magic_quotes_gpc()) - { - // Forcing parameter setting magic_quotes_gpc and cleaning parameters - // (Otherwise he would have for each position, condition - // Reading stripslashes variable according to state get_magic_quotes_gpc). - // Off mode (recommended, you just do $db->escape when an insert / update. - function stripslashes_deep($value) - { - return (is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value)); - } - $_GET = array_map('stripslashes_deep', $_GET); - $_POST = array_map('stripslashes_deep', $_POST); - $_COOKIE = array_map('stripslashes_deep', $_COOKIE); - $_REQUEST = array_map('stripslashes_deep', $_REQUEST); - @set_magic_quotes_runtime(0); - } -} - // Defini objet langs $langs = new Translate('..', $conf); if (GETPOST('lang', 'aZ09')) $langs->setDefaultLang(GETPOST('lang', 'aZ09'));