mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-19 18:32:52 +09:00
isseu 1860 change cache directory path
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10639 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
44b1b396ee
commit
682466a46b
1 changed files with 7 additions and 0 deletions
|
|
@ -699,6 +699,12 @@
|
|||
|
||||
if(version_compare(PHP_VERSION, "5.3.0") >= 0)
|
||||
{
|
||||
$path = _XE_PATH_.'files/cache/htmlpurifier';
|
||||
if(!file_exists($path))
|
||||
{
|
||||
FileHandler::makeDir($path);
|
||||
}
|
||||
|
||||
// purifier setting
|
||||
require_once _XE_PATH_.'classes/security/htmlpurifier/library/HTMLPurifier.auto.php';
|
||||
require_once 'HTMLPurifier.func.php';
|
||||
|
|
@ -706,6 +712,7 @@
|
|||
$config = HTMLPurifier_Config::createDefault();
|
||||
$config->set('HTML.TidyLevel', 'light');
|
||||
$config->set('HTML.SafeObject', true);
|
||||
$config->set('Cache.SerializerPath', $path);
|
||||
$purifier = new HTMLPurifier($config);
|
||||
$content = $purifier->purify($content);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue