Remove security fix

This commit is contained in:
Laurent Destailleur 2016-02-15 01:16:01 +01:00
parent fdea892e3b
commit 051b412c17

View File

@ -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