瀏覽代碼

fix possible XSS in view issue page

Unknwon 9 年之前
父節點
當前提交
923873db85
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      templates/repo/issue/view_content.tmpl

+ 1 - 1
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}}