diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-12-04 18:09:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 18:09:37 +0300 |
commit | eb9201005ad196a1d4dbb158d5ffedb7c9919ca5 (patch) | |
tree | 241177888243e283e7ceebbb3e256e976f63bf05 | |
parent | bcce5ba67b3771854e9de5008f23f685a196a63c (diff) | |
parent | 56604b02a8c0bd2905c82e854f47d41caaeaf9ca (diff) |
Merge pull request #24555 from nextcloud/backport/24550/stable18
[stable18] Generate a new session id if the decrypting the session data fails
-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 a0178c7eea2..24677330dc9 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); } } |