Skip to content

Commit

Permalink
Del: deprecation warnings (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Brinkman <[email protected]>
  • Loading branch information
richardbrinkman and Richard Brinkman authored Feb 25, 2022
1 parent 6dce78e commit 368c52f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ protected function _sanitizeHeaders(&$headers)
foreach ($headers as $key => $value) {
$headers[$key] =
preg_replace('=((<CR>|<LF>|0x0A/%0A|0x0D/%0D|\\n|\\r)\S).*=i',
null, $value);
'', $value);
}
}

Expand Down
4 changes: 2 additions & 2 deletions Mail/smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*
* @category HTTP
* @package HTTP_Request
* @author Jon Parise <[email protected]>
* @author Jon Parise <[email protected]>
* @author Chuck Hagenbuch <[email protected]>
* @copyright 2010-2017 Chuck Hagenbuch
* @license http://opensource.org/licenses/BSD-3-Clause New BSD License
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 368c52f

Please sign in to comment.