Merge pull request #3047 from axi/#3045

Remove potential ending line break when using edebug() with LoggerInterface
This commit is contained in:
Marcus Bointon 2024-04-08 19:11:49 +02:00 committed by GitHub
commit 400aeae82c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -280,6 +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);
return;