aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2007-05-18 19:04:23 +0000
committerJim Hu <jimhu@users.sourceforge.net>2007-05-18 19:04:23 +0000
commit5f5fd55e9791923c86ce80e5e5058e9d3b4f8fb4 (patch)
tree47eb15544aa7e521d77961ea340a68d4630c7cb7 /functions
parent73b224f34b3aa5892c0d9ac79d34c1a95155166e (diff)
downloadphpicalendar-5f5fd55e9791923c86ce80e5e5058e9d3b4f8fb4.tar.gz
phpicalendar-5f5fd55e9791923c86ce80e5e5058e9d3b4f8fb4.tar.bz2
phpicalendar-5f5fd55e9791923c86ce80e5e5058e9d3b4f8fb4.zip
another set of bug fixes. Should fix rss problem
Diffstat (limited to 'functions')
-rw-r--r--functions/sanitize.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/functions/sanitize.php b/functions/sanitize.php
index c318a60..4b5e883 100644
--- a/functions/sanitize.php
+++ b/functions/sanitize.php
@@ -34,11 +34,11 @@ foreach ($_GET as $key=>$val){
case 'cal':
if (!is_array($val)){
$val = strip_tags($val);
- $_REQUEST['cal'] = strip_tags($val);
+ $_GET['cal'] = strip_tags($val);
}else{
- unset ($_REQUEST['cal']);
+ unset ($_GET['cal']);
foreach($val as $cal){
- $_REQUEST['cal'][]= strip_tags($cal);
+ $_GET['cal'][]= strip_tags($cal);
}
}
break;
@@ -48,7 +48,7 @@ foreach ($_GET as $key=>$val){
default:
$val = strip_tags($val);
}
- $_GET[$key] = $val;
+ if ($key != 'cal') $_GET[$key] = $val;
}
foreach ($_COOKIE as $key=>$val){

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