do not attempt to replace anything in the password

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2019-04-02 23:08:34 +02:00
parent f2e9babaab
commit 2b84bbf372
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 5 additions and 1 deletions

View File

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