Merge pull request #24555 from nextcloud/backport/24550/stable18

[stable18] Generate a new session id if the decrypting the session data fails
This commit is contained in:
Roeland Jago Douma 2020-12-04 16:09:37 +01:00 committed by GitHub
commit eb9201005a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,6 +87,7 @@ class CryptoSessionData implements \ArrayAccess, ISession {
);
} catch (\Exception $e) {
$this->sessionValues = [];
$this->regenerateId(true, false);
}
}