From 56b5680027637254514ccd626093f5f65f1909ea Mon Sep 17 00:00:00 2001 From: SJ Date: Sat, 21 Jan 2017 16:02:28 +0100 Subject: [PATCH] gui: added html purifier cache value Change-Id: Ia7549803abbc87b4dd36f1e73ccbe8dbb60deea9 Signed-off-by: SJ --- webui/model/search/message.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webui/model/search/message.php b/webui/model/search/message.php index 56c9659a..931ca761 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -272,6 +272,8 @@ class ModelSearchMessage extends Model { $config = HTMLPurifier_Config::createDefault(); $config->set('URI', 'DisableExternal', 'true'); $config->set('URI', 'DisableExternalResources', 'true'); + $config->set('Cache.SerializerPath', DIR_BASE . 'tmp'); + $purifier = new HTMLPurifier($config); for($i=0; $i