Permalink
Browse files

1. trim question title

  • Loading branch information...
1 parent fb1574a commit d175244244426034a99f45af84ff357c85baa4d9 @sailingcai sailingcai committed Oct 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 forum/views.py
View
@@ -267,7 +267,7 @@ def ask(request):
if form.is_valid():
added_at = datetime.datetime.now()
- title = strip_tags(form.cleaned_data['title'])
+ title = strip_tags(form.cleaned_data['title']).strip()
wiki = form.cleaned_data['wiki']
tagnames = form.cleaned_data['tags'].strip()
text = form.cleaned_data['text']

0 comments on commit d175244

Please sign in to comment.