Browse Source

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

Unknwon 7 years ago
parent
commit
45a0988833
1 changed files with 1 additions and 1 deletions
  1. 1 1
      templates/repo/issue/view_content.tmpl

+ 1 - 1
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>