This commit is contained in:
Marcus Bointon 2024-04-08 20:11:00 +02:00
parent 41027807eb
commit fb317f2a36
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
2 changed files with 3 additions and 4 deletions

View File

@ -902,7 +902,7 @@ class PHPMailer
}
//Is this a PSR-3 logger?
if ($this->Debugoutput instanceof \Psr\Log\LoggerInterface) {
$this->Debugoutput->debug($str);
$this->Debugoutput->debug(rtrim($str, "\r\n"));
return;
}

View File

@ -280,9 +280,8 @@ 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 = rtrim($str, "\n\r");
$this->Debugoutput->debug($str);
//Remove trailing line breaks potentially added by calls to SMTP::client_send()
$this->Debugoutput->debug(rtrim($str, "\r\n"));
return;
}