Revert "restore empty check on $path"

This reverts commit 979cae1ebe.
This commit is contained in:
Eric Schultz
2020-01-16 15:03:29 -06:00
parent 5c85725c30
commit 6132a2fd06
+1 -1
View File
@@ -46,7 +46,7 @@ foreach (glob('plugins/*', GLOB_ONLYDIR) as $plugin) {
// get variables
$name = $_GET['name'];
$dir = $_GET['dir'];
$path = empty($_GET['path']) ? substr(explode('?', $_SERVER['REQUEST_URI'])[0], 1) : $_GET['path'];
$path = substr(explode('?', $_SERVER['REQUEST_URI'])[0], 1);
// The current "task" is the first element of the path
$task = strtok($path, '/');