From d8735fc8f090fd3af0a0c87504c7afef8e3a42bf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 21 Dec 2010 09:29:07 +0300 Subject: [PATCH] update htmlpurifier cache stuff, add sanity check --- .gitignore | 2 +- .../3.3.0,05c766101e813c246917b022f97b5e6e,1.ser | Bin 327 -> 0 bytes sanity_check.php | 6 ++++++ 3 files changed, 7 insertions(+), 1 deletion(-) delete mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/URI/3.3.0,05c766101e813c246917b022f97b5e6e,1.ser diff --git a/.gitignore b/.gitignore index 162b7aa6..4c76f15e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ icons/* cache/*/* lock/* tags -lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/*ser +lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/*/*ser diff --git a/lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/URI/3.3.0,05c766101e813c246917b022f97b5e6e,1.ser b/lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/URI/3.3.0,05c766101e813c246917b022f97b5e6e,1.ser deleted file mode 100644 index b0563a0823d425716aed44185de4926044c3c056..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 327 zcmZvXO$)*>42JzJIeJ?Cg!CpN6a2!Dv$Wc>Vx42n4kG*SrX47PwLn;UCK)EuMc_zTf#ubx*!O=h!hwYW-Cx%<$Ewq!r6SYRqKI1HsujWgK?G rl=K5@6MxbXm diff --git a/sanity_check.php b/sanity_check.php index d0f66f00..b20c57d9 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -16,6 +16,12 @@ $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')) { print "Fatal error: RSS_BACKEND_TYPE is deprecated. Please remove this option from config.php\n"; -- 2.39.5