From cc50d4801377cd6e9fa72fb0d14ee71a73bb7073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Mar=C3=B3y?= Date: Sun, 25 Jul 2021 23:17:35 +0200 Subject: [PATCH] Use `trim` instead of `rtrim` for `SMTP_PASSWORD_FILE` contents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: András Maróy --- .config/smtp.config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/smtp.config.php b/.config/smtp.config.php index af9f35a8..62880e4b 100644 --- a/.config/smtp.config.php +++ b/.config/smtp.config.php @@ -13,7 +13,7 @@ if (getenv('SMTP_HOST') && getenv('MAIL_FROM_ADDRESS') && getenv('MAIL_DOMAIN')) ); if (getenv('SMTP_PASSWORD_FILE') && file_exists(getenv('SMTP_PASSWORD_FILE'))) { - $CONFIG['mail_smtppassword'] = rtrim(file_get_contents(getenv('SMTP_PASSWORD_FILE'))); + $CONFIG['mail_smtppassword'] = trim(file_get_contents(getenv('SMTP_PASSWORD_FILE'))); } elseif (getenv('SMTP_PASSWORD')) { $CONFIG['mail_smtppassword'] = getenv('SMTP_PASSWORD'); } else {