diff --git a/phpBB/phpbb/search/fulltext_sphinx.php b/phpBB/phpbb/search/fulltext_sphinx.php index dc784ef0e1..d37f26856c 100644 --- a/phpBB/phpbb/search/fulltext_sphinx.php +++ b/phpBB/phpbb/search/fulltext_sphinx.php @@ -449,10 +449,9 @@ class fulltext_sphinx } else { - $match = ['\\', '(',')','|','!','@','~', '/', '^', '$', '=','&', '<', '>']; - $replace = [' ', ' ', ' ', ' ',' ',' ',' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ']; + $match = ['\\', '(',')', '|', '!', '@', '~', '/', '^', '$', '=', '&', '<', '>']; - $keywords = str_replace($match, $replace, $keywords); + $keywords = str_replace($match, ' ', $keywords); $this->sphinx->SetMatchMode(SPH_MATCH_ANY); }