mirror of https://github.com/gogs/gogs.git
templates/repo/issue: escape delete branch link after merged pull request (#4601)
parent
afbb31c05e
commit
45a0988833
|
@ -165,7 +165,7 @@
|
||||||
{{if .IsPullBranchDeletable}}
|
{{if .IsPullBranchDeletable}}
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
<div>
|
<div>
|
||||||
<form class="ui form" action="{{.DeleteBranchLink}}" method="post">
|
<form class="ui form" action="{{EscapePound .DeleteBranchLink}}" method="post">
|
||||||
{{.CSRFTokenHTML}}
|
{{.CSRFTokenHTML}}
|
||||||
<button class="ui red button">{{$.i18n.Tr "repo.pulls.delete_branch"}}</button>
|
<button class="ui red button">{{$.i18n.Tr "repo.pulls.delete_branch"}}</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue