From: Andreas Unterkircher Date: Sun, 30 Dec 2007 14:49:20 +0000 (+0100) Subject: issue84, do not further process RPC request, if no action has been specified X-Git-Tag: phpfspot-1.2~7 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=d52a300c17f28ab64deb3dc32d425af503030058 issue84, do not further process RPC request, if no action has been specified --- 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();