diff --git a/util/generate_stats.php b/util/generate_stats.php index f63774a0..5b80e5b3 100644 --- a/util/generate_stats.php +++ b/util/generate_stats.php @@ -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(); } diff --git a/webui/model/search/message.php b/webui/model/search/message.php index f30d861d..d3e91c9d 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -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