mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 00:45:56 +00:00
update htmlpurifier cache stuff, add sanity check
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,4 +3,4 @@ icons/*
|
|||||||
cache/*/*
|
cache/*/*
|
||||||
lock/*
|
lock/*
|
||||||
tags
|
tags
|
||||||
lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/*ser
|
lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/*/*ser
|
||||||
|
|||||||
Binary file not shown.
@@ -16,6 +16,12 @@
|
|||||||
$err_msg = "config: your config file version is incorrect. See config.php-dist.\n";
|
$err_msg = "config: your config file version is incorrect. See config.php-dist.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$purifier_cache_dir = "lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer";
|
||||||
|
|
||||||
|
if (!is_writable($purifier_cache_dir)) {
|
||||||
|
$err_msg = "config: HTMLPurifier cache directory should be writable by anyone (chmod -R 777 $purifier_cache_dir)";
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('RSS_BACKEND_TYPE')) {
|
if (defined('RSS_BACKEND_TYPE')) {
|
||||||
print "<b>Fatal error</b>: RSS_BACKEND_TYPE is deprecated. Please remove this
|
print "<b>Fatal error</b>: RSS_BACKEND_TYPE is deprecated. Please remove this
|
||||||
option from config.php\n";
|
option from config.php\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user