summaryrefslogtreecommitdiffstats
path: root/templates/news
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-10-26 23:49:58 +0200
committerDan McGee <dan@archlinux.org>2012-10-26 23:50:00 +0200
commit0b97d52351fc2bdcae16f1a1e7c56afd4ed476ad (patch)
treecae2a43c21d99f236a235863ee98f76775fb78c9 /templates/news
parent520066075938d325f93f814f92bb6005d00833c8 (diff)
downloadarchweb-0b97d52351fc2bdcae16f1a1e7c56afd4ed476ad.tar.gz
archweb-0b97d52351fc2bdcae16f1a1e7c56afd4ed476ad.tar.xz
Enable safe mode for markdown parsing
Although we don't allow unauthenticated users to post content, we should still cover our bases here and ensure people can't inject stuff into the production website via an inadvertent XSS. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/news')
-rw-r--r--templates/news/view.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/news/view.html b/templates/news/view.html
index 445f039..b6c06b2 100644
--- a/templates/news/view.html
+++ b/templates/news/view.html
@@ -28,6 +28,6 @@
<p class="article-info">{{ news.postdate|date }} - {{ news.author.get_full_name }}</p>
- <div class="article-content" itemprop="articleBody">{{ news.content|markdown }}</div>
+ <div class="article-content" itemprop="articleBody">{{ news.content|markdown:'safe' }}</div>
</div>
{% endblock %}