Переглянути джерело

templates/repo/setting: fix missing EscapePound (#5442)

Unknwon 6 роки тому
батько
коміт
1843354d88
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      templates/repo/settings/protected_branch.tmpl

+ 1 - 1
templates/repo/settings/protected_branch.tmpl

@@ -11,7 +11,7 @@
 				</h4>
 				<div class="ui attached segment branch-protection">
 					<p>{{.i18n.Tr "repo.settings.branch_protection_desc" .Branch.Name | Str2html}}</p>
-					<form class="ui form" action="{{.Link}}" method="post">
+					<form class="ui form" action="{{EscapePound .Link}}" method="post">
 						{{.CSRFTokenHTML}}
 						<div class="inline field">
 							<div class="ui checkbox">