safe include config.php with __DIR__

This commit is contained in:
ammm ccdd12 2021-02-21 10:27:23 +01:00 committed by ccdd13
parent 4e163af58f
commit fa2b846e70

View file

@ -131,7 +131,7 @@ $ip_blacklist = array(
);
// if User has the customized config file, try to use it to override the default config above
$config_file = './config.php';
$config_file = __DIR__.'/config.php';
if (is_readable($config_file)) {
@include($config_file);
}