Search: more sphinx chars to escape

This commit is contained in:
joshua stein 2015-03-10 17:07:15 -05:00
parent 9d8defb228
commit 966579e596

View file

@ -94,7 +94,7 @@ class Search
end
# escape sphinx special chars (using Riddle.escape removes boolean support)
query = words.gsub(/([\/~"@])/, '\\\\\1')
query = words.gsub(/(['\/~"@])/, '\\\\\1')
# go go gadget search
self.results = []