summaryrefslogtreecommitdiff
path: root/news/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-28 09:28:28 -0600
committerDan McGee <dan@archlinux.org>2012-11-28 09:28:28 -0600
commitfc7eb4aebf63525155bcadd366a87eed8f161568 (patch)
tree0f859882f8b3ae820e4a41266409494a91f5b64e /news/views.py
parenteea25558c766d5f3a32879d16e579d051906cbf3 (diff)
Add safe_mode filter to news admin; preview uses safe mode
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'news/views.py')
-rw-r--r--news/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news/views.py b/news/views.py
index efd93fdb..0e22ac34 100644
--- a/news/views.py
+++ b/news/views.py
@@ -76,7 +76,7 @@ def view_redirect(request, object_id):
@require_POST
def preview(request):
data = request.POST.get('data', '')
- markup = markdown.markdown(data, safe_mode=False, enable_attributes=False)
+ markup = markdown.markdown(data, safe_mode=True, enable_attributes=False)
return HttpResponse(markup)
# vim: set ts=4 sw=4 et: