Search: escape @, it has special meaning to sphinx
This commit is contained in:
parent
8771afc5f5
commit
975e35d006
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue