diff options
author | Jason Oster <parasytic@users.sourceforge.net> | 2009-06-22 21:13:21 +0000 |
---|---|---|
committer | Jason Oster <parasytic@users.sourceforge.net> | 2009-06-22 21:13:21 +0000 |
commit | e7f5b8949811e7f6497083204e050dab98f8b782 (patch) | |
tree | 168c2b514db922b720cbbb5f8d23809dd1e47df3 /functions | |
parent | adfd382da4dfceac4b8bbc13e17353fd036e753e (diff) | |
download | phpicalendar-e7f5b8949811e7f6497083204e050dab98f8b782.tar.gz phpicalendar-e7f5b8949811e7f6497083204e050dab98f8b782.tar.bz2 phpicalendar-e7f5b8949811e7f6497083204e050dab98f8b782.zip |
Saved parsed calendar data should be readable only by web server user
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 } } |