Browse Source

templates/repo/issue: escape delete branch link after merged pull request (#4601)

pull/5181/head
Unknwon 7 years ago
parent
commit
45a0988833
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      templates/repo/issue/view_content.tmpl

2
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>

Loading…
Cancel
Save