aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-09-28 23:32:00 -0400
committerUnknwon <u@gogs.io>2018-09-28 23:32:00 -0400
commit1843354d88b4998a93fc0165ccca760977be3e73 (patch)
treeb17369dd6b14942b0155b332c78bf8e326e34337 /templates
parentbd7d1e2f169d6cdfecd952a1d3ed55d0f49f4104 (diff)
templates/repo/setting: fix missing EscapePound (#5442)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/settings/protected_branch.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/protected_branch.tmpl b/templates/repo/settings/protected_branch.tmpl
index 4ed4176c..10495718 100644
--- a/templates/repo/settings/protected_branch.tmpl
+++ b/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">