From 2768a8d640c4abc764f3d4d8937664cc4e17499d Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 27 Sep 2013 13:39:28 +0200 Subject: [PATCH] Fixed search engine issue --- wcfsetup/install/files/lib/system/search/SearchEngine.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/search/SearchEngine.class.php b/wcfsetup/install/files/lib/system/search/SearchEngine.class.php index 321b60801e..4d54683397 100644 --- a/wcfsetup/install/files/lib/system/search/SearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchEngine.class.php @@ -83,7 +83,7 @@ class SearchEngine extends SingletonFactory { $controlCharacterOrSpace = false; $chars = array('+', '-', '*'); for ($i = 0, $length = mb_strlen($q); $i < $length; $i++) { - $char = $q[$i]; + $char = mb_substr($q, $i, 1); if ($inQuotes) { if ($char == '"') { -- 2.20.1