From: Tim Düsterhus Date: Mon, 10 May 2021 10:18:08 +0000 (+0200) Subject: Break words in subject truncation of email log X-Git-Tag: 5.4.0_Alpha_2~26 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39ad16436abd190e175dc9599080c6f64c24d02b;p=GitHub%2FWoltLab%2FWCF.git Break words in subject truncation of email log --- diff --git a/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php index 34f4c91db1..942a6b7a53 100644 --- a/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php @@ -87,7 +87,12 @@ class EmailDeliveryBackgroundJob extends AbstractBackgroundJob 'data' => [ 'time' => \TIME_NOW, 'messageID' => $this->email->getMessageID(), - 'subject' => StringUtil::truncate($this->email->getSubject(), 20), + 'subject' => StringUtil::truncate( + $this->email->getSubject(), + 20, + StringUtil::HELLIP, + false + ), 'recipient' => $this->envelopeTo->getAddress(), 'recipientID' => ($this->envelopeTo instanceof UserMailbox) ? $this->envelopeTo->getUser()->userID : null, 'status' => EmailLogEntry::STATUS_NEW,