diff options
author | Simon Rettberg | 2024-06-26 14:53:30 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-06-26 14:53:30 +0200 |
commit | bbe7759aecfc5cc963de00c0d331cdf494f47862 (patch) | |
tree | 11882bcb83926aa615afb5578ba34495dc1ad93f | |
parent | [sysconfig] Fix parentTask dependency for Taskmanager calls (diff) | |
download | slx-admin-bbe7759aecfc5cc963de00c0d331cdf494f47862.tar.gz slx-admin-bbe7759aecfc5cc963de00c0d331cdf494f47862.tar.xz slx-admin-bbe7759aecfc5cc963de00c0d331cdf494f47862.zip |
[locationinfo] Handle invalid UTF8 by sanitizing through iconv
-rw-r--r-- | modules-available/locationinfo/inc/icalparser.inc.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules-available/locationinfo/inc/icalparser.inc.php b/modules-available/locationinfo/inc/icalparser.inc.php index eacb67b1..54869c2e 100644 --- a/modules-available/locationinfo/inc/icalparser.inc.php +++ b/modules-available/locationinfo/inc/icalparser.inc.php @@ -1934,6 +1934,7 @@ class ICalParser */ protected function removeUnprintableChars(string $data): string { + $data = iconv('utf8', 'utf8//IGNORE', $data); return preg_replace('/[\x00-\x1F\x7F\xA0]/u', '', $data); } |