mirror of
https://github.com/gogs/gogs.git
synced 2026-02-09 07:56:58 +01:00
templates/repo/issue: escape delete branch link after merged pull request (#4601)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user