summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view_content.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-17 14:22:46 -0400
committerUnknwon <u@gogs.io>2015-09-17 14:22:46 -0400
commit923873db85bbc53b027a3b8194c364c0e39161d4 (patch)
tree288329a568e83923296aec4084b8f60412604e38 /templates/repo/issue/view_content.tmpl
parent373731f5e85566eb385e92f604e81232e3d6ba1a (diff)
downloadgitea-923873db85bbc53b027a3b8194c364c0e39161d4.tar.gz
gitea-923873db85bbc53b027a3b8194c364c0e39161d4.zip
fix possible XSS in view issue page
Diffstat (limited to 'templates/repo/issue/view_content.tmpl')
-rw-r--r--templates/repo/issue/view_content.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index d258d3d0a9..13729c95a8 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -124,7 +124,7 @@
<div class="detail">
<span class="octicon octicon-git-commit"></span>
- <span class="text grey">{{.Content | Safe}}</span>
+ <span class="text grey">{{.Content | Str2html}}</span>
</div>
</div>
{{end}}