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

This commit is contained in:
Unknwon
2018-04-16 23:02:20 -04:00
parent afbb31c05e
commit 45a0988833

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>