Merge pull request #14937 from nextcloud/fix/noid/no-placeholders-for-password

storage mount handlers: do not attempt to replace anything in password options
This commit is contained in:
Roeland Jago Douma 2019-04-03 09:47:13 +02:00 committed by GitHub
commit 39d1340371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -239,7 +239,11 @@ class OC_Mount_Config {
if (self::$skipTest) {
return StorageNotAvailableException::STATUS_SUCCESS;
}
foreach ($options as &$option) {
foreach ($options as $key => &$option) {
if($key === 'password') {
// no replacements in passwords
continue;
}
$option = self::substitutePlaceholdersInConfig($option);
if(!self::arePlaceholdersSubstituted($option)) {
\OC::$server->getLogger()->error(