mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: HTML Purifier would create tmp caches within the vendor folder, moved to users tmp dir #5561 (#5596)
This commit is contained in:
committed by
Tony Murray
parent
00771769a9
commit
599e1c4b25
@@ -1503,9 +1503,10 @@ function clean($value)
|
||||
*/
|
||||
function display($value)
|
||||
{
|
||||
$purifier = new HTMLPurifier(
|
||||
HTMLPurifier_Config::createDefault()
|
||||
);
|
||||
global $config;
|
||||
$p_config = HTMLPurifier_Config::createDefault();
|
||||
$p_config->set('Cache.SerializerPath', $config['temp_dir']);
|
||||
$purifier = new HTMLPurifier($p_config);
|
||||
return $purifier->purify(stripslashes($value));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user