mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 15:37:35 +00:00
[SECURITY] review(kn4ck3r): more template escapes
Signed-off-by: jolheiser <john.olheiser@gmail.com>
(cherry picked from commit 33af169223
)
Conflicts:
templates/repo/migrate/migrating.tmpl
templates/repo/settings/options.tmpl
trivial context conflict
This commit is contained in:
parent
496b0acd22
commit
09635b6b12
|
@ -21,12 +21,12 @@
|
|||
<div class="ui stackable middle very relaxed page grid">
|
||||
<div class="sixteen wide center aligned centered column">
|
||||
<div id="repo_migrating_progress">
|
||||
<p>{{.locale.Tr "repo.migrate.migrating" .CloneAddr | Safe}}</p>
|
||||
<p>{{.locale.Tr "repo.migrate.migrating" (.CloneAddr | Escape) | Safe}}</p>
|
||||
<p id="repo_migrating_progress_message"></p>
|
||||
</div>
|
||||
<div id="repo_migrating_failed" class="gt-hidden">
|
||||
{{if .CloneAddr}}
|
||||
<p>{{.locale.Tr "repo.migrate.migrating_failed" .CloneAddr | Safe}}</p>
|
||||
<p>{{.locale.Tr "repo.migrate.migrating_failed" (.CloneAddr | Escape) | Safe}}</p>
|
||||
{{else}}
|
||||
<p>{{.locale.Tr "repo.migrate.migrating_failed_no_addr" | Safe}}</p>
|
||||
{{end}}
|
||||
|
@ -57,7 +57,7 @@
|
|||
<div class="content">
|
||||
<div class="ui warning message">
|
||||
{{.locale.Tr "repo.settings.delete_notices_1" | Safe}}<br>
|
||||
{{.locale.Tr "repo.settings.delete_notices_2" .Repository.FullName | Safe}}
|
||||
{{.locale.Tr "repo.settings.delete_notices_2" (.Repository.FullName | Escape) | Safe}}
|
||||
{{if .Repository.NumForks}}<br>
|
||||
{{.locale.Tr "repo.settings.delete_notices_fork_1"}}
|
||||
{{end}}
|
||||
|
|
|
@ -943,7 +943,7 @@
|
|||
<div class="content">
|
||||
<div class="ui warning message">
|
||||
{{.locale.Tr "repo.settings.delete_notices_1" | Safe}}<br>
|
||||
{{.locale.Tr "repo.settings.delete_notices_2" .Repository.FullName | Safe}}
|
||||
{{.locale.Tr "repo.settings.delete_notices_2" (.Repository.FullName | Escape) | Safe}}
|
||||
{{if .Repository.NumForks}}<br>
|
||||
{{.locale.Tr "repo.settings.delete_notices_fork_1"}}
|
||||
{{end}}
|
||||
|
@ -978,7 +978,7 @@
|
|||
<div class="content">
|
||||
<div class="ui warning message">
|
||||
{{.locale.Tr "repo.settings.delete_notices_1" | Safe}}<br>
|
||||
{{.locale.Tr "repo.settings.wiki_delete_notices_1" .Repository.Name | Safe}}
|
||||
{{.locale.Tr "repo.settings.wiki_delete_notices_1" (.Repository.Name | Escape) | Safe}}
|
||||
</div>
|
||||
<form class="ui form" action="{{.Link}}" method="post">
|
||||
{{.CsrfTokenHtml}}
|
||||
|
|
Loading…
Reference in a new issue