summaryrefslogtreecommitdiffstats
path: root/templates/repo/editor
diff options
context:
space:
mode:
authorBwko <bouwko@gmail.com>2018-04-10 05:43:37 +0200
committerLauris BH <lauris@nix.lv>2018-04-10 06:43:37 +0300
commit38a9cda4bbcddff59c856d42de714b6764887fde (patch)
treeb6c7ea5e0886c6b72365e8d01a436b5c69d8a820 /templates/repo/editor
parent8ee45eb614eaa4814936a2166addc8c1208ea1f5 (diff)
downloadgitea-38a9cda4bbcddff59c856d42de714b6764887fde.tar.gz
gitea-38a9cda4bbcddff59c856d42de714b6764887fde.zip
Remove unnecessary Safe tags (#3778)
Diffstat (limited to 'templates/repo/editor')
-rw-r--r--templates/repo/editor/commit_form.tmpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/repo/editor/commit_form.tmpl b/templates/repo/editor/commit_form.tmpl
index 7b7e2cf463..be2773d624 100644
--- a/templates/repo/editor/commit_form.tmpl
+++ b/templates/repo/editor/commit_form.tmpl
@@ -14,8 +14,7 @@
<input type="radio" class="js-quick-pull-choice-option" name="commit_choice" value="direct" {{if eq .commit_choice "direct"}}checked{{end}}>
<label>
<i class="octicon octicon-git-commit" height="16" width="14"></i>
- {{$branchName := .BranchName | Str2html}}
- {{.i18n.Tr "repo.editor.commit_directly_to_this_branch" $branchName | Safe}}
+ {{.i18n.Tr "repo.editor.commit_directly_to_this_branch" (.BranchName|Escape) | Safe}}
</label>
</div>
</div>