gui: added html purifier cache value

Change-Id: Ib24de93286a5d71c24a27ff88da1c1faf29b537e
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2017-01-21 15:59:58 +01:00
parent d13987c4fd
commit e8aac544cc
2 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,7 @@ if($options = getopt($opts, $lopts)) {
}
if(webuidir == '') {
if($webuidir == '') {
echo("\nError: must provide path to WebUI directory\n\n");
display_help();
}

View File

@ -268,6 +268,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++) {