From ec2b23f7f3fbad79f9b1c0f3d02c0008d8aa06e0 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 7 Jun 2016 17:51:51 +0200 Subject: [PATCH] Fixed UTF-8 issue in text parser --- .../files/lib/system/search/SearchResultTextParser.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/search/SearchResultTextParser.class.php b/wcfsetup/install/files/lib/system/search/SearchResultTextParser.class.php index 925499894c..106a43e3bc 100644 --- a/wcfsetup/install/files/lib/system/search/SearchResultTextParser.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchResultTextParser.class.php @@ -68,7 +68,7 @@ class SearchResultTextParser extends SingletonFactory { */ protected function getMessageAbstract($text) { // replace newlines with spaces - $text = Regex::compile("\s+")->replace($text, ' '); + $text = Regex::compile("\s+", Regex::UTF_8)->replace($text, ' '); if (mb_strlen($text) > static::MAX_LENGTH) { if ($this->searchQuery) { -- 2.20.1