From 07e388c554feee7ea3e422414048a44c4963a046 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Thu, 27 May 2010 10:18:57 +0000 Subject: [PATCH] - secure path to 05_froxlor_dirfix_nofcgid.conf apache config file --- scripts/jobs/cron_tasks.inc.http.10.apache.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/jobs/cron_tasks.inc.http.10.apache.php b/scripts/jobs/cron_tasks.inc.http.10.apache.php index a1730cb3..0dbcaac2 100644 --- a/scripts/jobs/cron_tasks.inc.http.10.apache.php +++ b/scripts/jobs/cron_tasks.inc.http.10.apache.php @@ -67,7 +67,14 @@ class apache */ private function _createStandardDirectoryEntry() { - $vhosts_filename = makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/05_froxlor_dirfix_nofcgid.conf'); + $vhosts_folder = ''; + if(is_dir($this->settings['system']['apacheconf_vhost'])) + { + $vhosts_folder = makeCorrectPath($this->settings['system']['apacheconf_vhost']); + } else { + $vhosts_folder = makeCorrectPath(dirname($this->settings['system']['apacheconf_vhost'])); + } + $vhosts_filename = makeCorrectFile($vhosts_folder . '/05_froxlor_dirfix_nofcgid.conf'); if($this->settings['system']['mod_fcgid'] == '1') {