From d52a300c17f28ab64deb3dc32d425af503030058 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 30 Dec 2007 15:49:20 +0100 Subject: issue84, do not further process RPC request, if no action has been specified --- rpc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rpc.php b/rpc.php index bdb7004..4a8ca7c 100644 --- a/rpc.php +++ b/rpc.php @@ -40,6 +40,12 @@ class PHPFSPOT_RPC { $fspot = new PHPFSPOT(); + /* if no action is specified, no need to further process this + * function here. + */ + if(!isset($_GET['action'])) + return; + switch($_GET['action']) { case 'showphoto': if(isset($_GET['id']) && is_numeric($_GET['id'])) { @@ -142,7 +148,7 @@ class PHPFSPOT_RPC { } // process_ajax_request(); -} +} // class PHPFSPOT_RPC $rpc = new PHPFSPOT_RPC(); $rpc->process_ajax_request(); -- cgit v1.2.3-18-g5258