Merge pull request #92 from tractorcow/pulls/fix-temp-files

Provide better temporary location for HTMLPurifier cache files
This commit is contained in:
Will Rossiter 2015-01-12 19:11:16 +13:00
commit 2a20037e49

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