From 1bf24d299cd32f34e1c683c8ff72236dc9687469 Mon Sep 17 00:00:00 2001 From: Mow910 Date: Tue, 10 Mar 2026 19:36:55 +0100 Subject: [PATCH] Updated the current username variable in the Twitch moderation template to use JSON formatting for improved data handling and security. This change enhances the integration of user data within the JavaScript context. --- webapp/templates/twitch-moderation.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/templates/twitch-moderation.html b/webapp/templates/twitch-moderation.html index a00a283..a5a852c 100644 --- a/webapp/templates/twitch-moderation.html +++ b/webapp/templates/twitch-moderation.html @@ -651,7 +651,7 @@ // ============================= var displayedMessages = new Set(); var isAutoScroll = true; -var currentUsername = '{{ current_user.username }}'; +var currentUsername = {{ current_user.username | tojson }}; function escapeHtml(text) { var div = document.createElement('div');