mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix stupid error in vars.inc.php (#8904)
This commit is contained in:
@@ -13,7 +13,7 @@ foreach ($_GET as $key => $get_var) {
|
||||
|
||||
$base_url = parse_url($config["base_url"]);
|
||||
// don't parse the subdirectory, if there is one in the path
|
||||
if (strlen($base_url["path"]) > 1) {
|
||||
if (!empty($base_url["path"])) {
|
||||
$segments = explode('/', trim(str_replace($base_url["path"], "", $_SERVER['REQUEST_URI']), '/'));
|
||||
} else {
|
||||
$segments = explode('/', trim($_SERVER['REQUEST_URI'], '/'));
|
||||
|
Reference in New Issue
Block a user