mirror of https://gitlab.com/bashrc2/epicyon
Strip the token string
parent
30bfe14ccf
commit
a0a158bf0b
|
@ -918,9 +918,9 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
# token based authenticated used by the web interface
|
||||
if self.headers.get('Cookie'):
|
||||
if self.headers['Cookie'].startswith('epicyon='):
|
||||
tokenStr=self.headers['Cookie'].split('=',1)[1]
|
||||
tokenStr=self.headers['Cookie'].split('=',1)[1].strip()
|
||||
if ';' in tokenStr:
|
||||
tokenStr=tokenStr.split(';')[0]
|
||||
tokenStr=tokenStr.split(';')[0].strip()
|
||||
if self.server.tokensLookup.get(tokenStr):
|
||||
nickname=self.server.tokensLookup[tokenStr]
|
||||
# default to the inbox of the person
|
||||
|
|
Loading…
Reference in New Issue