summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2025-04-14 16:47:21 +0200
committerSimon Rettberg2025-04-14 16:47:21 +0200
commit549cef4fcc7fd47ce160bad46710505f383c83aa (patch)
tree21602b2417d0671ea0a0cc46e9a5819342255c0f /modules-available
parent[statistics] Fix recent machine list replacement (diff)
downloadslx-admin-549cef4fcc7fd47ce160bad46710505f383c83aa.tar.gz
slx-admin-549cef4fcc7fd47ce160bad46710505f383c83aa.tar.xz
slx-admin-549cef4fcc7fd47ce160bad46710505f383c83aa.zip
[locationinfo] Don't supply ' ' for empty black/whitelist
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/locationinfo/inc/locationinfohooks.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locationinfo/inc/locationinfohooks.inc.php b/modules-available/locationinfo/inc/locationinfohooks.inc.php
index ac8beab9..99efd70e 100644
--- a/modules-available/locationinfo/inc/locationinfohooks.inc.php
+++ b/modules-available/locationinfo/inc/locationinfohooks.inc.php
@@ -98,7 +98,7 @@ class LocationInfoHooks
*/
private static function mangleList(string $list): string
{
- return preg_replace('/\s*(#[^\n]*)?(\n|$)/', ' ', $list);
+ return trim(preg_replace('/\s*(#[^\n]*)?(\n|$)/', ' ', $list));
}
} \ No newline at end of file