From a9098cd72fa0513d708dfbbeb4b341799c1542fd Mon Sep 17 00:00:00 2001 From: Wesley Miaw Date: Thu, 16 Oct 2003 19:01:49 +0000 Subject: Do not include subscribe and download links for calendars referenced by an absolute path or with a relative path going up (i.e. ../). --- includes/calendar_nav.php | 2 +- includes/sidebar.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/calendar_nav.php b/includes/calendar_nav.php index 132fa2d..959277a 100644 --- a/includes/calendar_nav.php +++ b/includes/calendar_nav.php @@ -140,7 +140,7 @@ echo "$goyear_lang
\n"; echo "$goprint_lang
\n"; if ($allow_preferences != 'no') echo "$preferences_lang
\n"; - if ($cal != $ALL_CALENDARS_COMBINED) echo "$subscribe_lang | $download_lang\n"; + if ($cal != $ALL_CALENDARS_COMBINED && $subscribe_path != '' && $download_filename != '') echo "$subscribe_lang | $download_lang\n"; ?> diff --git a/includes/sidebar.php b/includes/sidebar.php index 6456a73..bdaa08c 100644 --- a/includes/sidebar.php +++ b/includes/sidebar.php @@ -34,7 +34,7 @@ $search_box = '
< echo "$goyear_lang
\n"; echo "$goprint_lang
\n"; if ($allow_preferences != 'no') echo "$preferences_lang
\n"; - if ($cal != $ALL_CALENDARS_COMBINED) echo "$subscribe_lang | $download_lang\n"; + if ($cal != $ALL_CALENDARS_COMBINED && $subscribe_path != '' && $download_filename != '') echo "$subscribe_lang | $download_lang\n"; echo ''; ?> -- cgit v1.2.3