diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-02-18 09:48:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-18 01:48:59 +0000 |
commit | a784ed3d6c6946fd9bf95f2e910f52f549326fe2 (patch) | |
tree | 9946c734e07c65f193459febdc9c9d7ef91cbc1d /templates/user | |
parent | d73223bfc6fcabdfb4ca284729ccead5ba228728 (diff) | |
download | gitea-a784ed3d6c6946fd9bf95f2e910f52f549326fe2.tar.gz gitea-a784ed3d6c6946fd9bf95f2e910f52f549326fe2.zip |
Use "Safe" modifier for manually constructed safe HTML strings in templates (#29227)
Follow #29165. These HTML strings are safe to be rendered directly, to
avoid double-escaping.
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/settings/organization.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/organization.tmpl b/templates/user/settings/organization.tmpl index 8079521984..102ff2e95b 100644 --- a/templates/user/settings/organization.tmpl +++ b/templates/user/settings/organization.tmpl @@ -47,7 +47,7 @@ {{ctx.Locale.Tr "org.members.leave"}} </div> <div class="content"> - <p>{{ctx.Locale.Tr "org.members.leave.detail" `<span class="dataOrganizationName"></span>` | Safe}}</p> + <p>{{ctx.Locale.Tr "org.members.leave.detail" (`<span class="dataOrganizationName"></span>`|Safe)}}</p> </div> {{template "base/modal_actions_confirm" .}} </div> |