aboutsummaryrefslogtreecommitdiffstats
path: root/rss/index.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-09-15 01:00:44 +0000
committerChad Little <clittle@users.sourceforge.net>2003-09-15 01:00:44 +0000
commitcab875ea0e16e37bc62b60782d0359865fc402e6 (patch)
treeb9dcc57c7b80bff07638afaf628d731caf4af94c /rss/index.php
parentea8ebe6a3122e066814a23c5c9d7233a2d48fbf7 (diff)
downloadphpicalendar-cab875ea0e16e37bc62b60782d0359865fc402e6.tar.gz
phpicalendar-cab875ea0e16e37bc62b60782d0359865fc402e6.tar.bz2
phpicalendar-cab875ea0e16e37bc62b60782d0359865fc402e6.zip
Fix for bug #794853 listing dot-files.
Diffstat (limited to 'rss/index.php')
-rw-r--r--rss/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/rss/index.php b/rss/index.php
index 6b9e880..6620f6e 100644
--- a/rss/index.php
+++ b/rss/index.php
@@ -72,7 +72,7 @@ if (isset($HTTP_SERVER_VARS['HTTP_REFERER']) && $HTTP_SERVER_VARS['HTTP_REFERER'
// build the <option> tags
while ($file = readdir($dir_handle)) {
- if (substr($file, -4) == ".ics") {
+ if (preg_match("/^[^.].+\.ics$/", $file)) {
// $cal_filename is the filename of the calendar without .ics
// $cal is a urlencoded version of $cal_filename

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