X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=rpc.php;h=4ffae5f5fbddd3cc58884f25c3136e8abcd809e2;hp=b691bd8908abdaa287928a4018fa4ce889c9a4fa;hb=d017dda4269c5122cd522218357a11fcb4880a5d;hpb=a36bd6f4555cf410712611b5efcb82fdf5898551 diff --git a/rpc.php b/rpc.php index b691bd8..4ffae5f 100644 --- a/rpc.php +++ b/rpc.php @@ -107,7 +107,11 @@ class PHPFSPOT_RPC { break; case 'get_calendar_matrix': - $fspot->get_calendar_matrix($_GET['year'], $_GET['month'], $_GET['day']); + if((is_numeric($_GET['year']) || $_GET['year'] == "") && + (is_numeric($_GET['month']) || $_GET['month'] == "") && + (is_numeric($_GET['day']) || $_GET['month'] == "")) { + $fspot->get_calendar_matrix($_GET['year'], $_GET['month'], $_GET['day']); + } break; case 'what_to_do':