From ad3afb05b657f2df6b4efbd58dee45687931c9c4 Mon Sep 17 00:00:00 2001 From: Boris Blondin Date: Tue, 18 Jan 2022 22:14:38 +0000 Subject: [PATCH] 1.2.4 --- CHANGELOG.md | 6 ++++++ src/helpers/RedactorHelper.php | 2 +- src/services/EmailerService.php | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9515127..21f5324 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Web Puzzlers Emails Changelog +## 1.2.4 - 2022-01-18 + +### Fixed +- Issue with redactor helper (php 7.4) +- Issue with event before prep (php 7.4) + ## 1.2.3 - 2022-01-11 ### Fixed diff --git a/src/helpers/RedactorHelper.php b/src/helpers/RedactorHelper.php index 78565a6..007053b 100644 --- a/src/helpers/RedactorHelper.php +++ b/src/helpers/RedactorHelper.php @@ -57,7 +57,7 @@ public static function getRedactorSettings(?string $redactorConfigFile): array * @param string $body * @return string */ - public function serializeBody(string $body): string + public static function serializeBody(string $body): string { return preg_replace_callback( '/(href=|src=)([\'"])([^\'"\?#]*)(\?[^\'"\?#]+)?(#[^\'"\?#]+)?(?:#|%23)([\w\\\\]+)\:(\d+)(?:@(\d+))?(\:(?:transform\:)?' . HandleValidator::$handlePattern . ')?\2/', diff --git a/src/services/EmailerService.php b/src/services/EmailerService.php index 28faf23..59c656e 100644 --- a/src/services/EmailerService.php +++ b/src/services/EmailerService.php @@ -17,6 +17,8 @@ class EmailerService extends Mailer { + const EVENT_BEFORE_PREP = 'beforePrep'; + public $parentMailer; /**