mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-26 06:20:11 +01:00
gui: added html purifier cache value
Change-Id: Ib24de93286a5d71c24a27ff88da1c1faf29b537e Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
parent
d13987c4fd
commit
e8aac544cc
@ -38,7 +38,7 @@ if($options = getopt($opts, $lopts)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(webuidir == '') {
|
if($webuidir == '') {
|
||||||
echo("\nError: must provide path to WebUI directory\n\n");
|
echo("\nError: must provide path to WebUI directory\n\n");
|
||||||
display_help();
|
display_help();
|
||||||
}
|
}
|
||||||
|
@ -268,6 +268,8 @@ class ModelSearchMessage extends Model {
|
|||||||
$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');
|
||||||
|
|
||||||
$purifier = new HTMLPurifier($config);
|
$purifier = new HTMLPurifier($config);
|
||||||
|
|
||||||
for($i=0; $i<count($mime_parts); $i++) {
|
for($i=0; $i<count($mime_parts); $i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user