From af7779daf8fb03512cc70932a865ba4ee4eeae29 Mon Sep 17 00:00:00 2001 From: Bwko Date: Wed, 11 Apr 2018 19:39:27 +0200 Subject: [PATCH] Remove unnecessary Safe tags (#3779) --- 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 bc00d0d71..ac1c8870f 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 7e608b1d3..ff66bf17a 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 7b7e2cf46..be2773d62 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 ea0e32c55..3fb010894 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 3557c5d3c..662155144 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 3bc1a209f..22433a8fd 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -302,7 +302,7 @@
- {{.i18n.Tr "repo.settings.convert_notices_1" | Safe}} + {{.i18n.Tr "repo.settings.convert_notices_1"}}
{{.CsrfTokenHtml}} @@ -333,8 +333,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}} @@ -371,7 +371,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}}