Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-12-04 18:09:37 +0300
committerGitHub <noreply@github.com>2020-12-04 18:09:37 +0300
commiteb9201005ad196a1d4dbb158d5ffedb7c9919ca5 (patch)
tree241177888243e283e7ceebbb3e256e976f63bf05
parentbcce5ba67b3771854e9de5008f23f685a196a63c (diff)
parent56604b02a8c0bd2905c82e854f47d41caaeaf9ca (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.php1
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);
}
}