Fix security hole
This commit is contained in:
parent
4eedec0274
commit
3b01b8cb47
@ -67,7 +67,9 @@ $conffiletoshow = "htdocs/conf/conf.php";
|
||||
|
||||
// Include configuration
|
||||
// --- End of part replaced by Dolibarr packager makepack-dolibarr
|
||||
|
||||
// Replace conf filename with "conf" parameter on url by GET
|
||||
/* Disabled. This is a serious security hole
|
||||
if (! empty($_GET['conf']))
|
||||
{
|
||||
$confname=basename($_GET['conf']);
|
||||
@ -77,7 +79,7 @@ if (! empty($_GET['conf']))
|
||||
$confname=basename(empty($_COOKIE['dolconf']) ? 'conf' : $_COOKIE['dolconf']);
|
||||
$conffile = 'conf/'.$confname.'.php';
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
// Include configuration
|
||||
$result=@include_once $conffile; // Keep @ because with some error reporting this break the redirect
|
||||
|
||||
Loading…
Reference in New Issue
Block a user