aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2005-10-25 02:47:30 +0000
committerChad Little <clittle@users.sourceforge.net>2005-10-25 02:47:30 +0000
commit53fa3d375b759ed123eddf47f77e2ec3fda3d81d (patch)
tree43ed180e444a65c113c9668ffe7c83da2111ae29 /index.php
parent049582a9710368ecf24321e2c1e821115aff13c0 (diff)
downloadphpicalendar-53fa3d375b759ed123eddf47f77e2ec3fda3d81d.tar.gz
phpicalendar-53fa3d375b759ed123eddf47f77e2ec3fda3d81d.tar.bz2
phpicalendar-53fa3d375b759ed123eddf47f77e2ec3fda3d81d.zip
Cookie vulnerability fixed.
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/index.php b/index.php
index 9310f4e..51a222c 100644
--- a/index.php
+++ b/index.php
@@ -10,7 +10,12 @@ if ($printview_default == 'yes') {
$printview = $default_view;
$default_view = "print.php";
} else {
- $default_view = "$default_view" . ".php";
+ $check = array ('day', 'week', 'month');
+ if (in_array($default_view, $check)) {
+ $default_view = $default_view . '.php';
+ } else {
+ die;
+ }
}
/*header("Location: $default_view");*/

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