Search: just use Riddle.escape, sorry boolean
This commit is contained in:
parent
5990afda85
commit
d10f567a26
|
@ -93,8 +93,7 @@ class Search
|
|||
[]
|
||||
end
|
||||
|
||||
# escape sphinx special chars (using Riddle.escape removes boolean support)
|
||||
query = words.gsub(/(['\/~"@])/, '\\\\\1')
|
||||
query = Riddle.escape(words)
|
||||
|
||||
# go go gadget search
|
||||
self.results = []
|
||||
|
|
Loading…
Reference in a new issue