From 85f3f2313b54807044e29e43d1fd65688c280de4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 26 Nov 2019 17:30:22 +0000 Subject: [PATCH] Remove trailing part of token --- daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon.py b/daemon.py index 9049d5f73..62feced5f 100644 --- a/daemon.py +++ b/daemon.py @@ -919,6 +919,8 @@ class PubServer(BaseHTTPRequestHandler): if self.headers.get('Cookie'): if self.headers['Cookie'].startswith('epicyon='): tokenStr=self.headers['Cookie'].split('=',1)[1] + if ';' in tokenStr: + tokenStr=tokenStr.split(';')[0] if self.server.tokensLookup.get(tokenStr): nickname=self.server.tokensLookup[tokenStr] # default to the inbox of the person