summaryrefslogtreecommitdiff
path: root/include/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-06-05 21:52:21 +0400
committerAndrew Dolgov <[email protected]>2012-06-05 21:52:21 +0400
commit010efc9b814b433bc60353caec185d905688a32b (patch)
treeb2b4f62cbc2d10cf75386e992434be1f4013dc13 /include/sanity_check.php
parent705b97b7fca9ea70820af5fcd926f88903eaa430 (diff)
Revert "remove htmlpurifier"
This reverts commit c21a462d52bd32737c32c29b060da03b38f1c2e6.
Diffstat (limited to 'include/sanity_check.php')
-rw-r--r--include/sanity_check.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php
index 2195945be..11da85921 100644
--- a/include/sanity_check.php
+++ b/include/sanity_check.php
@@ -23,6 +23,12 @@
$array_push($errors, "Configuration file (config.php) has incorrect version. Update it with new options from config.php-dist and set CONFIG_VERSION to the correct value.");
}
+ $purifier_cache_dir = CACHE_DIR . "/htmlpurifier";
+
+ if (!is_writable($purifier_cache_dir)) {
+ array_push($errors, "HTMLPurifier cache directory should be writable by anyone (chmod -R 777 $purifier_cache_dir)");
+ }
+
if (!is_writable(CACHE_DIR . "/images")) {
array_push($errors, "Image cache is not writable (chmod -R 777 ".CACHE_DIR."/images)");
}