diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-12-30 15:49:20 +0100 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-12-30 15:49:20 +0100 |
commit | d52a300c17f28ab64deb3dc32d425af503030058 (patch) | |
tree | e434956bfb5bc3caa15d2462138d7049d5e9499b | |
parent | 8a634d64d3809729ed7944c08366860f01f9b9f3 (diff) |
issue84, do not further process RPC request, if no action has been specified
-rw-r--r-- | rpc.php | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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(); |