mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-08 22:07:56 +00:00
add new chars quoting #9
This commit is contained in:
parent
f7807cf43e
commit
d40b914983
@ -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…
Reference in New Issue
Block a user