From 5f5fd55e9791923c86ce80e5e5058e9d3b4f8fb4 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Fri, 18 May 2007 19:04:23 +0000 Subject: another set of bug fixes. Should fix rss problem --- functions/sanitize.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'functions') 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){ -- cgit v1.2.3