summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-04-02 23:08:34 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-04-02 23:08:34 +0200
commit2b84bbf37257e77cd3e7a3177875052cdc51ede9 (patch)
tree4efaa5fd520328c443e738e7f444c4feaeef85ee
parentf2e9babaabeaecdf84bc7ae57cc7be6c7e16e431 (diff)
downloadnextcloud-server-2b84bbf37257e77cd3e7a3177875052cdc51ede9.tar.gz
nextcloud-server-2b84bbf37257e77cd3e7a3177875052cdc51ede9.zip
do not attempt to replace anything in the password
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-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(