summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2015-01-20 13:08:49 +0800
committerUnknwon <joe2010xtmf@163.com>2015-01-20 13:08:49 +0800
commit8e384ce46c69b0e90168094f64e2ad6c787f4cbb (patch)
tree75f29a2b75da9b5e1dceb91137805db6af8c3dd4 /templates
parent0e286a0ca96ff32241b0d96515d57a37c8a3d5dc (diff)
downloadgitea-8e384ce46c69b0e90168094f64e2ad6c787f4cbb.tar.gz
gitea-8e384ce46c69b0e90168094f64e2ad6c787f4cbb.zip
fix #828, may cause unintentional break in other features, but security is no.1
Diffstat (limited to 'templates')
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/repo/issue/milestone.tmpl2
-rw-r--r--templates/repo/issue/view.tmpl4
-rw-r--r--templates/repo/release/list.tmpl2
4 files changed, 5 insertions, 5 deletions
diff --git a/templates/.VERSION b/templates/.VERSION
index 3146279bd0..36f8bef5b7 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.5.11.0103 Beta \ No newline at end of file
+0.5.12.0120 Beta \ No newline at end of file
diff --git a/templates/repo/issue/milestone.tmpl b/templates/repo/issue/milestone.tmpl
index 8a5751c19b..8fc3c25347 100644
--- a/templates/repo/issue/milestone.tmpl
+++ b/templates/repo/issue/milestone.tmpl
@@ -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>
diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl
index 738e0c3450..31231515fc 100644
--- a/templates/repo/issue/view.tmpl
+++ b/templates/repo/issue/view.tmpl
@@ -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}}
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl
index 93dd896a64..79e69b7a9a 100644
--- a/templates/repo/release/list.tmpl
+++ b/templates/repo/release/list.tmpl
@@ -39,7 +39,7 @@
<span class="ahead">{{$.i18n.Tr "repo.release.ahead" .NumCommitsBehind .Target | Str2html}}</span>
</p>
<div class="markdown desc">
- {{str2html .Note}}
+ {{Str2html .Note}}
</div>
<p class="download">
<a class="btn btn-gray btn-large btn-radius" href="{{$.RepoLink}}/archive/{{.TagName}}.zip" rel="nofollow"><i class="fa fa-download"></i> {{$.i18n.Tr "repo.release.source_code"}} (ZIP)</a>