diff --git a/nntmux/SphinxSearch.php b/nntmux/SphinxSearch.php index ea6ca1aef..58c7cf5d0 100755 --- a/nntmux/SphinxSearch.php +++ b/nntmux/SphinxSearch.php @@ -83,7 +83,7 @@ class SphinxSearch } /** - * Escapes characters that are treated as special operators by the query language parser + * Escapes characters that are treated as special operators by the query language parser. * * @param string $string unescaped string * @@ -92,7 +92,7 @@ class SphinxSearch public function escapeString($string): string { $from = ['\\', '(', ')', '|', '-', '!', '@', '~', '"', '&', '/', '^', '$', '=']; - $to = ['\\\\', '\(', '\)', '\|', '\-', '\!', '\@', '\~', '\"', '\&', '\/', '\^', '\$', '\=']; + $to = ['\\\\', '\(', '\)', '\|', '\-', '\!', '\@', '\~', '\"', '\&', '\/', '\^', '\$', '\=']; return str_replace($from, $to, $string); }