From 39ad16436abd190e175dc9599080c6f64c24d02b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 10 May 2021 12:18:08 +0200 Subject: [PATCH] Break words in subject truncation of email log --- .../background/job/EmailDeliveryBackgroundJob.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, -- 2.20.1