mirror of
https://github.com/unraid/webgui.git
synced 2026-01-17 23:20:02 -06:00
System update
This commit is contained in:
@@ -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']) {
|
||||
|
||||
Reference in New Issue
Block a user