]> git.wh0rd.org Git - tt-rss.git/commitdiff
update htmlpurifier cache stuff, add sanity check
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 21 Dec 2010 06:29:07 +0000 (09:29 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 21 Dec 2010 06:29:20 +0000 (09:29 +0300)
.gitignore
lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/URI/3.3.0,05c766101e813c246917b022f97b5e6e,1.ser [deleted file]
sanity_check.php

index 162b7aa6b99e0f33a2de7b53195af2180101703b..4c76f15e363b8653241c13a98103503c21eb05ed 100644 (file)
@@ -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 (file)
index b0563a0..0000000
Binary files a/lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/URI/3.3.0,05c766101e813c246917b022f97b5e6e,1.ser and /dev/null differ
index d0f66f006898fa69b2e53abb745edb7bf4265f39..b20c57d9ec83a95259d2feee3b253ee740bc881d 100644 (file)
                $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 "<b>Fatal error</b>: RSS_BACKEND_TYPE is deprecated. Please remove this
                        option from config.php\n";