From 368c52f3001c4e4423cd83408040305d12da8c5e Mon Sep 17 00:00:00 2001 From: richardbrinkman Date: Fri, 25 Feb 2022 21:06:49 +0100 Subject: [PATCH] Del: deprecation warnings (#20) Co-authored-by: Richard Brinkman --- Mail.php | 2 +- Mail/smtp.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Mail.php b/Mail.php index b04bc01..f1b9476 100644 --- a/Mail.php +++ b/Mail.php @@ -153,7 +153,7 @@ protected function _sanitizeHeaders(&$headers) foreach ($headers as $key => $value) { $headers[$key] = preg_replace('=((||0x0A/%0A|0x0D/%0D|\\n|\\r)\S).*=i', - null, $value); + '', $value); } } diff --git a/Mail/smtp.php b/Mail/smtp.php index 5e698fe..5556355 100644 --- a/Mail/smtp.php +++ b/Mail/smtp.php @@ -38,7 +38,7 @@ * * @category HTTP * @package HTTP_Request - * @author Jon Parise + * @author Jon Parise * @author Chuck Hagenbuch * @copyright 2010-2017 Chuck Hagenbuch * @license http://opensource.org/licenses/BSD-3-Clause New BSD License @@ -299,7 +299,7 @@ protected function send_or_fail($recipients, $headers, $body) PEAR_MAIL_SMTP_ERROR_FROM); } - $params = null; + $params = ''; if (!empty($this->_extparams)) { foreach ($this->_extparams as $key => $val) { $params .= ' ' . $key . (is_null($val) ? '' : '=' . $val);