mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
@@ -97,6 +97,13 @@ class FilterForm(forms.Form):
|
||||
for a in actions:
|
||||
getattr(self, "_build_%s_field" % a[0])(request, a[1])
|
||||
|
||||
def clean_name(self):
|
||||
"""Check that name does not contain strange chars.
|
||||
"""
|
||||
if '#' in self.cleaned_data["name"]:
|
||||
raise forms.ValidationError(_("Wrong filter name"))
|
||||
return self.cleaned_data["name"]
|
||||
|
||||
def _build_header_field(self, name, op, value):
|
||||
targets = []
|
||||
ops = []
|
||||
|
||||
Reference in New Issue
Block a user