Browse Source

add new chars quoting #9

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

2
library/filter.php

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

Loading…
Cancel
Save