mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
issue 1860 rollback apply purifier
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10645 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
71a87ed4b7
commit
ab0d78ffde
1 changed files with 0 additions and 20 deletions
|
|
@ -696,26 +696,6 @@
|
|||
|
||||
// xmp tag 확인 및 추가
|
||||
$content = checkXmpTag($content);
|
||||
|
||||
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';
|
||||
|
||||
$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);
|
||||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue