diff options
| author | 2024-03-31 18:39:43 +0200 | |
|---|---|---|
| committer | 2024-03-31 18:39:43 +0200 | |
| commit | 1fb0cdfd069c480b0910aba7b95b47c62adae55a (patch) | |
| tree | a16b1c5bf5c24decf9b2ea901402b2b028af93d5 /lib | |
| parent | 9d48121e052183bbb93aca7dead4cb5cf0629428 (diff) | |
Unicode preg_split new line (#6247)
fix https://github.com/FreshRSS/FreshRSS/issues/6236
https://php.net/reference.pcre.pattern.modifiers
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/Request.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index 662dc6db9..6d099a555 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -120,7 +120,7 @@ class Minz_Request { */ public static function paramTextToArray(string $key, array $default = []): array { if (isset(self::$params[$key]) && is_string(self::$params[$key])) { - return preg_split('/\R/', self::$params[$key]) ?: []; + return preg_split('/\R/u', self::$params[$key]) ?: []; } return $default; } |
