From 7f1005ed06a1a66e5438b15a20d8ad9617a007e5 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Mon, 12 Jan 2015 14:00:20 +1300 Subject: [PATCH] Provide better temporary location for HTMLPurifier cache files --- code/dataobjects/Comment.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/dataobjects/Comment.php b/code/dataobjects/Comment.php index 80d1385..019faab 100755 --- a/code/dataobjects/Comment.php +++ b/code/dataobjects/Comment.php @@ -398,6 +398,7 @@ class Comment extends DataObject { $config->set('AutoFormat.AutoParagraph', true); $config->set('AutoFormat.Linkify', true); $config->set('URI.DisableExternalResources', true); + $config->set('Cache.SerializerPath', getTempFolder()); return new HTMLPurifier($config); }