gui: added html purifier cache value

Change-Id: Ia7549803abbc87b4dd36f1e73ccbe8dbb60deea9
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2017-01-21 16:02:28 +01:00
parent 376b0345e1
commit 56b5680027

View File

@ -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<count($mime_parts); $i++) {