From 38a9cda4bbcddff59c856d42de714b6764887fde Mon Sep 17 00:00:00 2001 From: Bwko Date: Tue, 10 Apr 2018 05:43:37 +0200 Subject: [PATCH] Remove unnecessary Safe tags (#3778) --- templates/repo/branch/list.tmpl | 6 +++--- templates/repo/create.tmpl | 2 +- templates/repo/editor/commit_form.tmpl | 3 +-- templates/repo/issue/view_content.tmpl | 6 +++--- templates/repo/issue/view_content/comments.tmpl | 2 +- templates/repo/settings/options.tmpl | 8 ++++---- 6 files changed, 13 insertions(+), 14 deletions(-) diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index cd6afce9120a..c3bc04df27c4 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -69,12 +69,12 @@ diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 7e608b1d34c3..ff66bf17a127 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -36,7 +36,7 @@
- {{.i18n.Tr "repo.repo_name_helper" | Safe}} + {{.i18n.Tr "repo.repo_name_helper"}}
diff --git a/templates/repo/editor/commit_form.tmpl b/templates/repo/editor/commit_form.tmpl index 7b7e2cf4632f..be2773d62465 100644 --- a/templates/repo/editor/commit_form.tmpl +++ b/templates/repo/editor/commit_form.tmpl @@ -14,8 +14,7 @@
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index ea0e32c55eee..3fb01089428d 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -134,12 +134,12 @@ diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 3557c5d3c1df..662155144fe0 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -145,7 +145,7 @@ {{.Poster.Name}} - {{$.i18n.Tr "repo.issues.delete_branch_at" .CommitSHA $createdStr | Safe}} + {{$.i18n.Tr "repo.issues.delete_branch_at" (.CommitSHA|Escape) $createdStr | Safe}} {{else if eq .Type 12}} diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 3e811559ee0c..f8ba4137c210 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -326,7 +326,7 @@
- {{.i18n.Tr "repo.settings.convert_notices_1" | Safe}} + {{.i18n.Tr "repo.settings.convert_notices_1"}}
{{.CsrfTokenHtml}} @@ -357,8 +357,8 @@
- {{.i18n.Tr "repo.settings.transfer_notices_1" | Safe}}
- {{.i18n.Tr "repo.settings.transfer_notices_2" | Safe}} + {{.i18n.Tr "repo.settings.transfer_notices_1"}}
+ {{.i18n.Tr "repo.settings.transfer_notices_2"}}
{{.CsrfTokenHtml}} @@ -395,7 +395,7 @@ {{.i18n.Tr "repo.settings.delete_notices_1" | Safe}}
{{.i18n.Tr "repo.settings.delete_notices_2" .Repository.FullName | Safe}} {{if .Repository.NumForks}}
- {{.i18n.Tr "repo.settings.delete_notices_fork_1" | Safe}} + {{.i18n.Tr "repo.settings.delete_notices_fork_1"}} {{end}}