summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-04-18 15:44:20 +0200
committerJoas Schilling <coding@schilljs.com>2017-04-18 15:44:20 +0200
commita5b4308a517a66b320ba69be8604144ce74f417e (patch)
treeef952ee37dd149322cbacea72ce1e099c32bcc2f /lib
parentb072d2c49d6f61c2b55abf12e04bdf2166dbd4f4 (diff)
downloadnextcloud-server-a5b4308a517a66b320ba69be8604144ce74f417e.tar.gz
nextcloud-server-a5b4308a517a66b320ba69be8604144ce74f417e.zip
Don't put the SMTP password into the HTML code
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Settings/Admin/Additional.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Settings/Admin/Additional.php b/lib/private/Settings/Admin/Additional.php
index d133e4737a7..59058851a64 100644
--- a/lib/private/Settings/Admin/Additional.php
+++ b/lib/private/Settings/Admin/Additional.php
@@ -65,6 +65,10 @@ class Additional implements ISettings {
'mail_smtppassword' => $this->config->getSystemValue('mail_smtppassword', ''),
];
+ if ($parameters['mail_smtppassword'] !== '') {
+ $parameters['mail_smtppassword'] = '********';
+ }
+
return new TemplateResponse('settings', 'admin/additional-mail', $parameters, '');
}