Should only be cosmetic
This commit is contained in:
Jellyfrog
2021-03-24 15:13:43 +01:00
committed by GitHub
parent d06c65a746
commit 3cfffb9912
37 changed files with 89 additions and 71 deletions

View File

@@ -84,7 +84,7 @@ class Clean
$value = htmlentities($value);
}
if (! isset($purifier)) {
if (! $purifier instanceof HTMLPurifier) {
// initialize HTML Purifier here since this is the only user
$p_config = HTMLPurifier_Config::createDefault();
$p_config->set('Cache.SerializerPath', Config::get('temp_dir', '/tmp'));