summaryrefslogtreecommitdiffstats
path: root/forum/views.py
diff options
context:
space:
mode:
authorsailingcai <sailingcai@gmail.com>2009-10-12 22:58:32 +0800
committersailingcai <sailingcai@gmail.com>2009-10-12 22:58:32 +0800
commit68050eb048190c0b924c8c0612540c405dcd5ea6 (patch)
tree9d61b17ff6c3bdfd73842cdd62728f1047cc70e1 /forum/views.py
parente8f1aef3636a2b9ef10d2d2bc4a768503a3e0d07 (diff)
downloadaskbot-68050eb048190c0b924c8c0612540c405dcd5ea6.tar.gz
askbot-68050eb048190c0b924c8c0612540c405dcd5ea6.tar.bz2
askbot-68050eb048190c0b924c8c0612540c405dcd5ea6.zip
1. trim question title
Diffstat (limited to 'forum/views.py')
-rw-r--r--forum/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/forum/views.py b/forum/views.py
index 377e7e8b..08f665f8 100644
--- a/forum/views.py
+++ b/forum/views.py
@@ -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']