Search: just use Riddle.escape, sorry boolean

This commit is contained in:
joshua stein 2016-01-18 09:58:09 -06:00
parent 5990afda85
commit d10f567a26

View file

@ -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 = []