Remove potential ending line break when using edebug() with LoggerInterface

This commit is contained in:
Alexis Urien 2024-04-08 08:52:41 -07:00
parent df33c89c5b
commit 01db3e6b24
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ class SMTP
//Is this a PSR-3 logger?
if ($this->Debugoutput instanceof \Psr\Log\LoggerInterface) {
//Remove ending line breaks potentialy added by calls to SMTP::client_send()
$str = preg_replace('/[' . static::LE .']+$/', '', $str);
$str = preg_replace('/[\r\n]+$/', '', $str);
$this->Debugoutput->debug($str);
return;