Search: escape @, it has special meaning to sphinx

This commit is contained in:
joshua stein 2015-02-05 09:55:41 -06:00
parent 8771afc5f5
commit 975e35d006

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