Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Test USE_SESSION_CREDENTIALS value, not just isset(). Should be the r…
…eal cause of #1316
  • Loading branch information
cdujeu committed Jan 18, 2017
1 parent d0a823c commit 5908f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/meta.mount/FilesystemMounter.php
Expand Up @@ -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"];
Expand Down

0 comments on commit 5908f02

Please sign in to comment.