mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-06-30 00:19:41 +02:00
Provide better temporary location for HTMLPurifier cache files
This commit is contained in:
parent
a061be8732
commit
7f1005ed06
|
@ -398,6 +398,7 @@ class Comment extends DataObject {
|
||||||
$config->set('AutoFormat.AutoParagraph', true);
|
$config->set('AutoFormat.AutoParagraph', true);
|
||||||
$config->set('AutoFormat.Linkify', true);
|
$config->set('AutoFormat.Linkify', true);
|
||||||
$config->set('URI.DisableExternalResources', true);
|
$config->set('URI.DisableExternalResources', true);
|
||||||
|
$config->set('Cache.SerializerPath', getTempFolder());
|
||||||
return new HTMLPurifier($config);
|
return new HTMLPurifier($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user