diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-07-26 04:05:08 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-07-26 04:05:08 +0000 |
commit | de91ca834564f13a8a059f320c469c08309e5e6c (patch) | |
tree | 9136aee5d96f90ac1f6ce0796c257c243864d323 /rpc.php | |
parent | 1990884ed4c67209cec83786bac6db810177ca06 (diff) |
issue60, input validation for calendar-matrix parameters
git-svn-id: file:///var/lib/svn/phpfspot/trunk@254 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'rpc.php')
-rw-r--r-- | rpc.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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': |