Fixed "$dir" enconding

This commit is contained in:
bergware
2021-12-24 12:54:51 +01:00
parent 41f19dc714
commit a513ebade6
+1 -1
View File
@@ -64,7 +64,7 @@ foreach (glob('plugins/*', GLOB_ONLYDIR) as $plugin) {
// Get general variables
$name = unscript($_GET['name']??'');
$dir = rawurldecode($_GET['dir']??'');
$dir = addslashes(rawurldecode($_GET['dir']??''));
$path = substr(strtok($_SERVER['REQUEST_URI'],'?'),1);
// The current "task" is the first element of the path