diff options
| author | Simon Rettberg | 2025-04-14 16:47:21 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-04-14 16:47:21 +0200 |
| commit | 549cef4fcc7fd47ce160bad46710505f383c83aa (patch) | |
| tree | 21602b2417d0671ea0a0cc46e9a5819342255c0f /modules-available | |
| parent | [statistics] Fix recent machine list replacement (diff) | |
| download | slx-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.php | 2 |
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 |
