System update

This commit is contained in:
bergware
2022-07-03 09:08:29 +02:00
parent c3b9273d56
commit 93a506bf40

View File

@@ -16,7 +16,7 @@ $file = $_POST['file'];
function validpath($file) {
global $docroot;
return strncmp(realpath(dirname("$docroot/$file")),$docroot,strlen($docroot))===0;
return realpath(dirname("$docroot/$file")) == $docroot;
}
switch ($_POST['cmd']) {