mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-02 22:12:16 +02:00
safe include config.php with __DIR__
This commit is contained in:
parent
4e163af58f
commit
fa2b846e70
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue