diff options
author | Unknwon <u@gogs.io> | 2018-04-16 23:02:20 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-04-16 23:02:20 -0400 |
commit | 45a098883322f022e9db03b79303c75cdd29f7ee (patch) | |
tree | 3d4fb8c5854b12188d43f4554220146581add285 | |
parent | afbb31c05e1c0168f1fe19706f7ce33484138bf6 (diff) |
templates/repo/issue: escape delete branch link after merged pull request (#4601)
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index c03b6973..200710cd 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -165,7 +165,7 @@ {{if .IsPullBranchDeletable}} <div class="ui divider"></div> <div> - <form class="ui form" action="{{.DeleteBranchLink}}" method="post"> + <form class="ui form" action="{{EscapePound .DeleteBranchLink}}" method="post"> {{.CSRFTokenHTML}} <button class="ui red button">{{$.i18n.Tr "repo.pulls.delete_branch"}}</button> </form> |