diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-04 11:42:40 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-04 11:42:40 +0100 |
commit | 858f623081bb6854463103d2112a7abc9536fe40 (patch) | |
tree | 765f4b8f2c8fc66ee61752983fd06ddda7457efd /lib/private/Session | |
parent | 64bc7c79e8e2f60b80eb56c821a2c2d62d123e43 (diff) | |
download | nextcloud-server-858f623081bb6854463103d2112a7abc9536fe40.tar.gz nextcloud-server-858f623081bb6854463103d2112a7abc9536fe40.zip |
Generate a new session id if the decrypting the session data fails
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Session')
-rw-r--r-- | lib/private/Session/CryptoSessionData.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Session/CryptoSessionData.php b/lib/private/Session/CryptoSessionData.php index fc7693b71b2..2b5b5c7b5e7 100644 --- a/lib/private/Session/CryptoSessionData.php +++ b/lib/private/Session/CryptoSessionData.php @@ -87,6 +87,7 @@ class CryptoSessionData implements \ArrayAccess, ISession { ); } catch (\Exception $e) { $this->sessionValues = []; + $this->regenerateId(true, false); } } |