From 6f1948ae6bb17706443f63b31e48b474655b868a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 20 Aug 2017 10:15:19 +0300 Subject: [PATCH] htmlpurifier cache not writable #1627 --- app/Libraries/HTMLUtils.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Libraries/HTMLUtils.php b/app/Libraries/HTMLUtils.php index ad8ea6c8cb53..1b42f1bbe7b7 100644 --- a/app/Libraries/HTMLUtils.php +++ b/app/Libraries/HTMLUtils.php @@ -22,6 +22,7 @@ class HTMLUtils $config->set('CSS.AllowImportant', true); $config->set('CSS.AllowTricky', true); $config->set('CSS.Trusted', true); + $config->set('Cache.SerializerPath', base_path('storage/framework/cache')); // Create a new purifier instance $purifier = new HTMLPurifier($config); @@ -42,6 +43,8 @@ class HTMLUtils $html = html_entity_decode($html); $config = HTMLPurifier_Config::createDefault(); + $config->set('Cache.SerializerPath', base_path('storage/framework/cache')); + $purifier = new HTMLPurifier($config); return $purifier->purify($html);