Skip to content

Commit 39d1340

Browse files
authored
Merge pull request #14937 from nextcloud/fix/noid/no-placeholders-for-password
storage mount handlers: do not attempt to replace anything in password options
2 parents b483419 + 2b84bbf commit 39d1340

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/files_external/lib/config.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,11 @@ public static function getBackendStatus($class, $options, $isPersonal, $testOnly
239239
if (self::$skipTest) {
240240
return StorageNotAvailableException::STATUS_SUCCESS;
241241
}
242-
foreach ($options as &$option) {
242+
foreach ($options as $key => &$option) {
243+
if($key === 'password') {
244+
// no replacements in passwords
245+
continue;
246+
}
243247
$option = self::substitutePlaceholdersInConfig($option);
244248
if(!self::arePlaceholdersSubstituted($option)) {
245249
\OC::$server->getLogger()->error(

0 commit comments

Comments
 (0)