Remove space from email subjects

This commit is contained in:
Igor Scheller 2021-12-20 21:07:00 +01:00 committed by msquare
parent 46d6ada728
commit 11c3a762b8
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ class EngelsystemMailer extends Mailer
public function send($to, string $subject, string $body): int
{
if ($this->subjectPrefix) {
$subject = sprintf('[%s] %s', $this->subjectPrefix, $subject);
$subject = sprintf('[%s] %s', $this->subjectPrefix, trim($subject));
}
return parent::send($to, $subject, $body);