aboutsummaryrefslogtreecommitdiffstats
path: root/rss
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-10-01 23:42:41 +0000
committerChad Little <clittle@users.sourceforge.net>2004-10-01 23:42:41 +0000
commit4eaf9bb8551db86c1d05e27e6bcfd98c00433567 (patch)
treea70afbca4f0341c86c630efd5d1e4758d7199648 /rss
parent4d47a9e7b55a756b07f9ae2c0a696de8fa1ec4cc (diff)
downloadphpicalendar-4eaf9bb8551db86c1d05e27e6bcfd98c00433567.tar.gz
phpicalendar-4eaf9bb8551db86c1d05e27e6bcfd98c00433567.tar.bz2
phpicalendar-4eaf9bb8551db86c1d05e27e6bcfd98c00433567.zip
Test fix.
Diffstat (limited to 'rss')
-rw-r--r--rss/rss.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/rss/rss.php b/rss/rss.php
index 42a0eac..c604afa 100644
--- a/rss/rss.php
+++ b/rss/rss.php
@@ -18,8 +18,9 @@ $cal_displayname = str_replace("32", " ", $cal);
$events_week = 0;
// calculate a value for Last Modified and ETag
-$filemod = filemtime("$calendar_path/$cal.ics");
-$filemodtime = date("r", $filemod);
+$cal = urldecode($cal);
+$filemod = @filemtime("$calendar_path/$cal.ics");
+$filemodtime = @date("r", $filemod);
//send relevant headers
header ("Last-Modified: $filemodtime");

© 2014-2024 Faster IT GmbH | imprint | privacy policy