From ef271a16efffa97ee36a1eba50fe783feb090f95 Mon Sep 17 00:00:00 2001 From: netniV Date: Thu, 22 Aug 2019 11:30:47 +0000 Subject: [PATCH] When URL_PATH is blank, it should assume that it is '/' Closes #2908 --- CHANGELOG | 1 + include/global.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 459e4064c..6751636d8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -37,6 +37,7 @@ Cacti CHANGELOG -issue#2903: PHP recommendations can generate a warning causing json issues -issue#2905: Sorting plugins by version can lead to unexpected ordering -issue#2907: SSL column for multiple pollers can be incorrectly set causing SQL errors +-issue#2908: When URL_PATH is blank, it should assume that it is '/' 1.2.5 -issue#1978: Popup Menus can appear off screen when using Graph Thumbnails diff --git a/include/global.php b/include/global.php index ec970876a..4971b36c7 100644 --- a/include/global.php +++ b/include/global.php @@ -137,6 +137,11 @@ if (!empty($db_missing_vars)) { die("config.php is $db_missing_vars" . PHP_EOL); } +if (empty($url_path)) { + /* define default url path */ + $url_path = '/'; +} + /* set the local for international users */ setlocale(LC_CTYPE, 'en_US.UTF-8');