summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-04-03 09:47:13 +0200
committerGitHub <noreply@github.com>2019-04-03 09:47:13 +0200
commit39d134037130fb24173efc55440f5ab7fc91d812 (patch)
treee3ce3235561120fe049539c61e1e0ae9d50fbe6c /apps
parentb483419a980c7b98242922495f303a8973752c3a (diff)
parent2b84bbf37257e77cd3e7a3177875052cdc51ede9 (diff)
downloadnextcloud-server-39d134037130fb24173efc55440f5ab7fc91d812.tar.gz
nextcloud-server-39d134037130fb24173efc55440f5ab7fc91d812.zip
Merge pull request #14937 from nextcloud/fix/noid/no-placeholders-for-password
storage mount handlers: do not attempt to replace anything in password options
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/config.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index 65e8ae387bd..47e68b4b1a0 100644
--- a/apps/files_external/lib/config.php
+++ b/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(