From 5ef16773c89df25be4c10b8adf38988b549b3f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 11 May 2022 13:03:40 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=EF=B8=8F=20Escape=20requested=20us?= =?UTF-8?q?er=20id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes an XSS issue. --- src/octoprint/templates/login.jinja2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/templates/login.jinja2 b/src/octoprint/templates/login.jinja2 index adca8c6131..252e33dbd7 100644 --- a/src/octoprint/templates/login.jinja2 +++ b/src/octoprint/templates/login.jinja2 @@ -69,12 +69,12 @@
{{ _('Server is currently offline.') }} {{ _('Reconnect...') }}
{% if user_id %}

- {{ _('The following account is required:') }} {{ user_id }} + {{ _('The following account is required:') }} {{ user_id|e }}

{% elif logged_in %}

{{ _('An account with the following permissions is required:') }} {{ permission_names|join(", ") }}

{% endif %} - + {{ _('Forgot password?') }}