From: Andreas Unterkircher Date: Thu, 26 Jul 2007 04:05:08 +0000 (+0000) Subject: issue60, input validation for calendar-matrix parameters X-Git-Tag: phpfspot-1.2~81 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=de91ca834564f13a8a059f320c469c08309e5e6c issue60, input validation for calendar-matrix parameters git-svn-id: file:///var/lib/svn/phpfspot/trunk@254 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- diff --git a/rpc.php b/rpc.php index b691bd8..8c72e0f 100644 --- a/rpc.php +++ b/rpc.php @@ -107,7 +107,10 @@ class PHPFSPOT_RPC { break; case 'get_calendar_matrix': - $fspot->get_calendar_matrix($_GET['year'], $_GET['month'], $_GET['day']); + if(is_numeric($_GET['year']) && is_numeric($_GET['month']) && + is_numeric($_GET['day'])) { + $fspot->get_calendar_matrix($_GET['year'], $_GET['month'], $_GET['day']); + } break; case 'what_to_do':