gui: fixed calling html purifier settings

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2017-08-12 15:55:28 +02:00
parent 7cdb016565
commit 5b246d5447

View File

@ -279,8 +279,8 @@ class ModelSearchMessage extends Model {
require_once DIR_SYSTEM . 'helper/HTMLPurifier.standalone.php'; require_once DIR_SYSTEM . 'helper/HTMLPurifier.standalone.php';
$config = HTMLPurifier_Config::createDefault(); $config = HTMLPurifier_Config::createDefault();
$config->set('URI', 'DisableExternal', 'true'); $config->set('URI.DisableExternal', 'true');
$config->set('URI', 'DisableExternalResources', 'true'); $config->set('URI.DisableExternalResources', 'true');
$config->set('Cache.SerializerPath', DIR_BASE . 'tmp'); $config->set('Cache.SerializerPath', DIR_BASE . 'tmp');
$purifier = new HTMLPurifier($config); $purifier = new HTMLPurifier($config);