diff options
author | Lauris BH <lauris@nix.lv> | 2018-02-18 22:06:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-18 22:06:37 +0200 |
commit | ae30315a62644774756df64af0ca1ef405853a57 (patch) | |
tree | ce2b64280c81a52560a096260be1b851a781c6df /templates/repo/wiki | |
parent | 96c268c0fcc22604103f67821d66fef39944e80b (diff) | |
download | gitea-ae30315a62644774756df64af0ca1ef405853a57.tar.gz gitea-ae30315a62644774756df64af0ca1ef405853a57.zip |
Fix escaping changed title in comments (#3530)
* Fix escaping changed title in comments
* Fix escaping of wiki page titile
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
Diffstat (limited to 'templates/repo/wiki')
-rw-r--r-- | templates/repo/wiki/view.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index dfd368cd3d..93b7c10640 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -104,7 +104,7 @@ {{.i18n.Tr "repo.wiki.delete_page_button"}} </div> <div class="content"> - <p>{{.i18n.Tr "repo.wiki.delete_page_notice_1" $title | Safe}}</p> + <p>{{.i18n.Tr "repo.wiki.delete_page_notice_1" ($title|Escape) | Safe}}</p> </div> {{template "base/delete_modal_actions" .}} </div> |