Search: escape " when sending to sphinx

This commit is contained in:
joshua stein 2014-06-24 20:08:15 -05:00
parent 013662e50b
commit 78f4da6699

View file

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