From 2b84bbf37257e77cd3e7a3177875052cdc51ede9 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 2 Apr 2019 23:08:34 +0200 Subject: [PATCH] do not attempt to replace anything in the password Signed-off-by: Arthur Schiwon --- apps/files_external/lib/config.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 65e8ae387b..47e68b4b1a 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(