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
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-08-14 06:23:11 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-08-14 10:24:53 +0300
commita6760c2b1c8b4cfa08ba77cd4037682d838582ba (patch)
tree78f745bce4d432bd4041c650fde24771886fcbf4 /lib
parent10ee9791ffb6dd36c21000da9715ee5fb3302f03 (diff)
Silence duplicate session warnings
Fixes #20490 Basically restroring the old behavior. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Session/Internal.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php
index ffe16537874..f08f4da52a7 100644
--- a/lib/private/Session/Internal.php
+++ b/lib/private/Session/Internal.php
@@ -104,7 +104,7 @@ class Internal extends Session {
public function clear() {
$this->invoke('session_unset');
$this->regenerateId();
- $this->startSession();
+ $this->startSession(true);
$_SESSION = [];
}
@@ -213,11 +213,11 @@ class Internal extends Session {
}
}
- private function startSession() {
+ private function startSession(bool $silence = false) {
if (PHP_VERSION_ID < 70300) {
- $this->invoke('session_start');
+ $this->invoke('session_start', [], $silence);
} else {
- $this->invoke('session_start', [['cookie_samesite' => 'Lax']]);
+ $this->invoke('session_start', [['cookie_samesite' => 'Lax']], $silence);
}
}
}