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 <roeland@famdouma.nl>2020-12-04 13:42:40 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-12-04 15:00:38 +0300
commit56604b02a8c0bd2905c82e854f47d41caaeaf9ca (patch)
tree241177888243e283e7ceebbb3e256e976f63bf05
parentbcce5ba67b3771854e9de5008f23f685a196a63c (diff)
Generate a new session id if the decrypting the session data fails
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-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);
}
}