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

storage mount handlers: do not attempt to replace anything in password options
pull/14943/head
Roeland Jago Douma 7 years ago committed by GitHub
commit 39d1340371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      apps/files_external/lib/config.php

@ -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(

Loading…
Cancel
Save