1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

fix #828, may cause unintentional break in other features, but security is no.1

This commit is contained in:
Unknwon
2015-01-20 13:08:49 +08:00
parent 0e286a0ca9
commit 8e384ce46c
7 changed files with 13 additions and 10 deletions

View File

@@ -32,7 +32,7 @@
<a href="{{$.RepoLink}}/issues?milestone={{.Index}}{{if .IsClosed}}&state=closed{{end}}">Issues</a>
</p>
<hr/>
<p class="description">{{.RenderedContent | str2html}}</p>
<p class="description">{{.RenderedContent | Str2html}}</p>
</div>
{{end}}
</div>

View File

@@ -25,7 +25,7 @@
<div class="panel panel-default issue-content">
<div class="panel-body">
<div class="content markdown">
{{str2html .Issue.RenderedContent}}
{{Str2html .Issue.RenderedContent}}
</div>
<div class="issue-edit-content hidden">
<div class="form-group">
@@ -73,7 +73,7 @@
</div>
<div class="panel-body markdown">
{{if len .Content}}
{{str2html .Content}}
{{Str2html .Content}}
{{else}}
<i>No comment entered</i>
{{end}}