summaryrefslogtreecommitdiffstats
path: root/forum
diff options
context:
space:
mode:
authorsailingcai <sailingcai@gmail.com>2009-10-12 22:58:08 +0800
committersailingcai <sailingcai@gmail.com>2009-10-12 22:58:08 +0800
commit8069d9e7bd39b5e6ba73a282ea741e276acd0a82 (patch)
tree9d61b17ff6c3bdfd73842cdd62728f1047cc70e1 /forum
parent077b9e19c5032a6fae2030fd58c0c0c10dfea1ab (diff)
downloadaskbot-8069d9e7bd39b5e6ba73a282ea741e276acd0a82.tar.gz
askbot-8069d9e7bd39b5e6ba73a282ea741e276acd0a82.tar.bz2
askbot-8069d9e7bd39b5e6ba73a282ea741e276acd0a82.zip
1. trim question title
Diffstat (limited to 'forum')
-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']