diff options
Diffstat (limited to 'modules-available/locationinfo/inc/locationinfohooks.inc.php')
-rw-r--r-- | modules-available/locationinfo/inc/locationinfohooks.inc.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/modules-available/locationinfo/inc/locationinfohooks.inc.php b/modules-available/locationinfo/inc/locationinfohooks.inc.php index 175afbd2..ac8beab9 100644 --- a/modules-available/locationinfo/inc/locationinfohooks.inc.php +++ b/modules-available/locationinfo/inc/locationinfohooks.inc.php @@ -29,14 +29,7 @@ class LocationInfoHooks ConfigHolder::add('SLX_BROWSER_RELOAD_SECS', $data['reload-minutes'] * 60); } ConfigHolder::add('SLX_BROWSER_URL', $data['url']); - // Mangle non-upgraded panels - if (empty($data['blacklist']) && $data['whitelist'] === '*' && !empty($data['urllist'])) { - if ($data['iswhitelist']) { - $data['whitelist'] = str_replace(' ', "\n", $data['urllist']); - } else { - $data['blacklist'] = str_replace(' ', "\n", $data['urllist']); - } - } + LocationInfo::cleanupUrlFilter($data); ConfigHolder::add('SLX_BROWSER_WHITELIST', self::mangleList($data['whitelist'])); ConfigHolder::add('SLX_BROWSER_BLACKLIST', self::mangleList($data['blacklist'])); // Additionally, update runmode "isclient" flag depending on whether split-login is allowed or not |