Provide better temporary location for HTMLPurifier cache files

This commit is contained in:
Damian Mooyman 2015-01-12 14:00:20 +13:00
parent a061be8732
commit 7f1005ed06

View File

@ -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);
}