From 9f9d30f42c89d1d5fc79ae745f136a9d5f857192 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 10 Mar 2026 23:36:35 +0000 Subject: [PATCH] fix logues redered as-is with ?b (GHSA-rcp6-88mm-9vgf) --- copyparty/web/browser2.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/copyparty/web/browser2.html b/copyparty/web/browser2.html index 7b9053c8..47e4b12e 100644 --- a/copyparty/web/browser2.html +++ b/copyparty/web/browser2.html @@ -28,7 +28,11 @@ {%- endif %} {%- if logues[0] %} -
{{ logues[0] }}

+ {%- if sb_lg %} +
{{ logues[0][:2000]|e }}

+ {%- else %} +
{{ logues[0][:2000] }}

+ {%- endif %} {%- endif %} @@ -53,7 +57,11 @@
{%- if logues[1] %} -
{{ logues[1] }}

+ {%- if sb_lg %} +
{{ logues[1][:2000]|e }}

+ {%- else %} +
{{ logues[1][:2000] }}

+ {%- endif %} {%- endif %}

control-panel