From c6f3f4349352fd6c9f654d42164f7562322c467f Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 16 Apr 2025 09:35:17 +0000 Subject: [PATCH] web: Fix encoding of the XSRF token Signed-off-by: Michael Tremer --- src/web/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/base.py b/src/web/base.py index c9d80399..ce98c724 100644 --- a/src/web/base.py +++ b/src/web/base.py @@ -570,7 +570,7 @@ class BaseHandler(tornado.web.RequestHandler): binascii.b2a_hex(tornado.util._websocket_mask(mask, token)), tornado.escape.utf8(str(int(timestamp))), ] - ) + ).decode() if version is None: if self.current_user and "expires_days" not in cookie_kwargs: -- 2.47.2