diff --git a/library/filter.php b/library/filter.php index 029bf9a..897eff1 100644 --- a/library/filter.php +++ b/library/filter.php @@ -57,7 +57,7 @@ class Filter { static public function sphinxSearchQuery(string $query) { - $query = str_replace(['\\', '/', '~', '@', '!', '"', '(', ')'], ['\\\'', '\/', '\~', '\@', '\!', '\"', '\(', '\)'], $query); + $query = str_replace(['\\', '/', '~', '@', '!', '"', '(', ')'], ['\\\\', '\/', '\~', '\@', '\!', '\"', '\(', '\)'], $query); $query = trim($query);