mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-23 11:56:36 +11:00
Keywords are lowercased
This commit is contained in:
parent
3adb1ce05d
commit
ba1798e75c
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class SnippetForm(forms.ModelForm):
|
|||
content = self.cleaned_data.get('content')
|
||||
if content:
|
||||
regex = Spamword.objects.get_regex()
|
||||
if regex.findall(content):
|
||||
if regex.findall(content.lower()):
|
||||
raise forms.ValidationError('This snippet was identified as SPAM.')
|
||||
return content
|
||||
|
||||
|
|
Loading…
Reference in a new issue