mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Do not honour the session-id, longer than 40 characters, instead create
new session-id in that case.
This commit is contained in:
@@ -204,7 +204,7 @@ class ServerSideSessionInterface(SessionInterface):
|
||||
Returns the SqliteSessionStorage object representing this session.
|
||||
"""
|
||||
sid = request.cookies.get(app.session_cookie_name)
|
||||
if not sid:
|
||||
if not sid or len(sid) > 40:
|
||||
sid = str(uuid4())
|
||||
return SqliteSessionStorage(self.directory, sid)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user