issue67, when called from an external link, also check the consider-date-search-box...
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index b691bd8908abdaa287928a4018fa4ce889c9a4fa..4ffae5f5fbddd3cc58884f25c3136e8abcd809e2 100644 (file)
--- a/rpc.php
+++ b/rpc.php
@@ -107,7 +107,11 @@ class PHPFSPOT_RPC {
             break;
 
          case 'get_calendar_matrix':
             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':
             break;
 
          case 'what_to_do':