From 5908f027d68970fded96e5190928997542442506 Mon Sep 17 00:00:00 2001 From: cdujeu Date: Wed, 18 Jan 2017 11:03:23 +0100 Subject: [PATCH] Test USE_SESSION_CREDENTIALS value, not just isset(). Should be the real cause of #1316 --- core/src/plugins/meta.mount/FilesystemMounter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/plugins/meta.mount/FilesystemMounter.php b/core/src/plugins/meta.mount/FilesystemMounter.php index d897d789e9..8abdb491a6 100644 --- a/core/src/plugins/meta.mount/FilesystemMounter.php +++ b/core/src/plugins/meta.mount/FilesystemMounter.php @@ -73,7 +73,7 @@ protected function getCredentials() list($user,$password) = MemorySafe::getCredentialsFromEncodedString($this->options["ENCODED_CREDENTIALS"]); } // 2. Try from session - if ($user=="" && isSet($this->options["USE_SESSION_CREDENTIALS"]) ) { + if ($user=="" && isSet($this->options["USE_SESSION_CREDENTIALS"]) && $this->options["USE_SESSION_CREDENTIALS"] === true ) { $safeCred = MemorySafe::loadCredentials(); if ($safeCred !== false) { $user = $safeCred["user"];