From db6bdfd93199920f9a34cce9e25ea82e1c6079ad Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Tue, 5 Oct 2010 20:24:08 +0000 Subject: [PATCH] - always check that HTMLPurifier's cache folder is writable --- lib/cron_init.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/cron_init.php b/lib/cron_init.php index 46c69892..4ba0d9ee 100644 --- a/lib/cron_init.php +++ b/lib/cron_init.php @@ -182,6 +182,14 @@ if((int)$settings['system']['mod_fcgid_ownvhost'] == 1) safe_exec('chown -R ' . $user . ':' . $group . ' ' . escapeshellarg($mypath)); } +/** + * be sure HTMLPurifier's cache folder is writable + */ +safe_exec('chmod -R 0755 '.escapeshellarg(dirname(__FILE__).'/classes/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer')); +/** + * end of HTMLPurifier check + */ + if(!isset($settings['panel']['version']) || $settings['panel']['version'] != $version) {