From 5b2424b077913d1274030ad8ee2e2a2b5da42701 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 15 Dec 2022 14:27:07 -0600 Subject: [PATCH] user listings: ban reasons are safe --- files/templates/admin/shadowbanned.html | 2 +- files/templates/banned.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/templates/admin/shadowbanned.html b/files/templates/admin/shadowbanned.html index 9af91f3f8..3bab313db 100644 --- a/files/templates/admin/shadowbanned.html +++ b/files/templates/admin/shadowbanned.html @@ -22,7 +22,7 @@ {{user.truescore}} {{user.shadowbanner}} - {% if user.ban_reason %}{{user.ban_reason}}{% endif %} + {% if user.ban_reason %}{{user.ban_reason | safe}}{% else %}No reason{% endif %} {% endfor %} diff --git a/files/templates/banned.html b/files/templates/banned.html index 10b1f1fe6..7cc5735ce 100644 --- a/files/templates/banned.html +++ b/files/templates/banned.html @@ -25,7 +25,7 @@ {%- endif %} {{user.truescore}} - {% if user.ban_reason %}{{user.ban_reason}}{% endif %} + {% if user.ban_reason %}{{user.ban_reason | safe}}{% else %}No reason{% endif %} {% with user=user.banned_by %} {% include "user_in_table.html" %} -- 2.34.1