align config.inc path for security check

This commit is contained in:
Daniel Seifert 2024-12-04 11:45:51 +01:00
parent 5c5101525f
commit 0673841d60

View File

@ -23,7 +23,7 @@
function checkAccess(string $action): void function checkAccess(string $action): void
{ {
unset($action); unset($action);
if ($_COOKIE['filemanagerkey'] !== md5_file("../../../../../../config.inc.php")) { if ($_COOKIE['filemanagerkey'] !== md5_file(__DIR__."/../../../../../../../source/config.inc.php")) {
die('nice try, noob.'); die('nice try, noob.');
} }
} }