From: Michael Tremer Date: Wed, 16 Apr 2025 09:35:17 +0000 (+0000) Subject: web: Fix encoding of the XSRF token X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6f3f4349352fd6c9f654d42164f7562322c467f;p=pbs.git web: Fix encoding of the XSRF token Signed-off-by: Michael Tremer --- 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: