align config.inc path for security check
This commit is contained in:
parent
5c5101525f
commit
0673841d60
@ -23,7 +23,7 @@
|
||||
function checkAccess(string $action): void
|
||||
{
|
||||
unset($action);
|
||||
if ($_COOKIE['filemanagerkey'] !== md5_file("../../../../../../config.inc.php")) {
|
||||
if ($_COOKIE['filemanagerkey'] !== md5_file(__DIR__."/../../../../../../../source/config.inc.php")) {
|
||||
die('nice try, noob.');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user