From e7f5b8949811e7f6497083204e050dab98f8b782 Mon Sep 17 00:00:00 2001 From: Jason Oster Date: Mon, 22 Jun 2009 21:13:21 +0000 Subject: Saved parsed calendar data should be readable only by web server user --- functions/ical_parser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'functions') diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 6a10272..cb1191d 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -23,7 +23,7 @@ if ($phpiCal_config->save_parsed_cals == 'yes') { foreach ($master_array['-4'] as $temp_array) { $mtime = $master_array['-4'][$z]['mtime']; $fname = $master_array['-4'][$z]['filename']; - $wcalc = $master_array['-4'][$z]['webcal']; + $wcalc = $master_array['-4'][$z]['webcal']; if ($wcalc == 'no') $realcal_mtime = filemtime($fname); else $realcal_mtime = remote_filemtime($fname); @@ -503,6 +503,7 @@ if ($parse_file) { @fwrite($fd, $write_me); @fclose($fd); @touch($parsedcal, $realcal_mtime); + @chmod($parsedcal, 0600); // 0640 } } -- cgit v1.2.3