From e0fec6e00a6f39cfb0518f6f5f176b99e2250be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Cho=C5=82aj?= Date: Fri, 24 Jun 2022 14:43:17 +0200 Subject: [PATCH] Disable html purifier cache --- src/Core/EmailChannel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/EmailChannel.php b/src/Core/EmailChannel.php index dfa74f6..8fa2bbc 100644 --- a/src/Core/EmailChannel.php +++ b/src/Core/EmailChannel.php @@ -59,7 +59,7 @@ private static function renderMjml(string $mjml): string private static function fixHtml(string $html): string { - $config = HTMLPurifier_Config::createDefault(); + $config = HTMLPurifier_Config::createDefault()->set('Cache.DefinitionImpl', null); $purifier = new HTMLPurifier($config); return $purifier->purify($html); }