From 051b412c1702cdf47d53dc534a754a61d12313ee Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 15 Feb 2016 01:16:01 +0100 Subject: [PATCH] Remove security fix --- htdocs/filefunc.inc.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php index 3638da31a76..b97721f2108 100644 --- a/htdocs/filefunc.inc.php +++ b/htdocs/filefunc.inc.php @@ -81,12 +81,6 @@ if (! empty($_GET['conf'])) $conffile = 'conf/'.$confname.'.php'; } */ -if (!empty($_GET['conf'])) { - setcookie('dolconf', $_GET['conf']); - $conffile = 'conf/' . $_GET['conf'] . '.php'; -} else { - $conffile = 'conf/' . (!empty($_COOKIE['dolconf']) ? $_COOKIE['dolconf'] : 'conf') . '.php'; -} // Include configuration $result=@include_once $conffile; // Keep @ because with some error reporting this break the redirect