diff --git a/boards/forms.py b/boards/forms.py --- a/boards/forms.py +++ b/boards/forms.py @@ -126,7 +126,7 @@ class PostForm(NeboardForm): return title def clean_text(self): - text = self.cleaned_data['text'] + text = self.cleaned_data['text'].strip() if text: if len(text) > board_settings.MAX_TEXT_LENGTH: raise forms.ValidationError(_('Text must have less than %s ' @@ -217,7 +217,7 @@ class ThreadForm(PostForm): max_length=100, label=_('Tags')) def clean_tags(self): - tags = self.cleaned_data['tags'] + tags = self.cleaned_data['tags'].strip() if tags: if not self.regex_tags.match(tags):