From: Marcel Werk Date: Tue, 7 Jun 2016 15:51:51 +0000 (+0200) Subject: Fixed UTF-8 issue in text parser X-Git-Tag: 3.0.0_Beta_1~1504 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec2b23f7f3fbad79f9b1c0f3d02c0008d8aa06e0;p=GitHub%2FWoltLab%2FWCF.git Fixed UTF-8 issue in text parser --- 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) {