Browse Source

fix replacement typo #9

main
ghost 2 years ago
parent
commit
84fd82f294
  1. 2
      library/filter.php

2
library/filter.php

@ -57,7 +57,7 @@ class Filter {
static public function sphinxSearchQuery(string $query) { static public function sphinxSearchQuery(string $query) {
$query = str_replace(['\\', '/', '~', '@', '!', '"', '(', ')'], ['\\\'', '\/', '\~', '\@', '\!', '\"', '\(', '\)'], $query); $query = str_replace(['\\', '/', '~', '@', '!', '"', '(', ')'], ['\\\\', '\/', '\~', '\@', '\!', '\"', '\(', '\)'], $query);
$query = trim($query); $query = trim($query);

Loading…
Cancel
Save