Do not double escape search patterns.

see #622
This commit is contained in:
Antoine Nguyen
2014-11-04 16:47:44 +01:00
parent 2bc90c4790
commit 788c7eb2c9
2 changed files with 4 additions and 2 deletions
+4 -1
View File
@@ -189,7 +189,10 @@ class QuarantineNavigationParameters(NavigationParameters):
request, 'quarantine_navparams'
)
self.parameters += [
('msgtype', None, False), ('viewrequests', None, False)
('pattern', '', False),
('criteria', 'from_addr', False),
('msgtype', None, False),
('viewrequests', None, False)
]
def back_to_listing(self):
@@ -100,7 +100,6 @@ class SQLconnector(object):
criteria = "from_addr,subject,to"
search_flt = None
for crit in criteria.split(","):
print crit
if crit == "from_addr":
nfilter = Q(mail__from_addr__contains=pattern)
elif crit == "subject":