mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2026-05-05 07:36:10 +02:00
move HTMLPurifier cache inside CACHE_DIR/htmlpurifier
This commit is contained in:
parent
9b27cec8c0
commit
ca06ed7d36
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,4 +3,5 @@ icons/*
|
||||
cache/*/*
|
||||
lock/*
|
||||
tags
|
||||
cache/htmlpurifier/*/*ser
|
||||
lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/*/*ser
|
||||
|
||||
0
cache/htmlpurifier/.empty
vendored
Normal file
0
cache/htmlpurifier/.empty
vendored
Normal file
@ -120,6 +120,7 @@
|
||||
@$config->set('HTML', 'Allowed', $allowed);
|
||||
$config->set('Output.FlashCompat', true);
|
||||
$config->set('Attr.EnableID', true);
|
||||
$config->set('Cache', 'SerializerPath', CACHE_DIR . "/htmlpurifier");
|
||||
|
||||
$purifier = new HTMLPurifier($config);
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
$err_msg = "config: your config file version is incorrect. See config.php-dist.\n";
|
||||
}
|
||||
|
||||
$purifier_cache_dir = "lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer";
|
||||
$purifier_cache_dir = CACHE_DIR . "/htmlpurifier";
|
||||
|
||||
if (!is_writable($purifier_cache_dir)) {
|
||||
$err_msg = "config: HTMLPurifier cache directory should be writable by anyone (chmod -R 777 $purifier_cache_dir)";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user