mirror of
https://github.com/unraid/webgui.git
synced 2026-03-07 18:39:27 -06:00
Patched vulnerability in template.php
This commit is contained in:
@@ -43,9 +43,10 @@ foreach (glob('plugins/*', GLOB_ONLYDIR) as $plugin) {
|
||||
if ($plugin != 'plugins/dynamix') build_pages("$plugin/*.page");
|
||||
}
|
||||
|
||||
// Need the following to make php-fpm & nginx work
|
||||
if (empty($path))
|
||||
$path = substr(explode('?', $_SERVER['REQUEST_URI'])[0], 1);
|
||||
// get variables
|
||||
$name = $_GET['name'];
|
||||
$dir = $_GET['dir'];
|
||||
$path = substr(explode('?', $_SERVER['REQUEST_URI'])[0], 1);
|
||||
|
||||
// The current "task" is the first element of the path
|
||||
$task = strtok($path, '/');
|
||||
|
||||
Reference in New Issue
Block a user