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

pull/5181/head
Unknwon 2018-04-16 23:02:20 -04:00
parent afbb31c05e
commit 45a0988833
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
1 changed files with 1 additions and 1 deletions

View File

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