summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-12-30 15:49:20 +0100
committerAndreas Unterkircher <unki@netshadow.at>2007-12-30 15:49:20 +0100
commitd52a300c17f28ab64deb3dc32d425af503030058 (patch)
treee434956bfb5bc3caa15d2462138d7049d5e9499b
parent8a634d64d3809729ed7944c08366860f01f9b9f3 (diff)
issue84, do not further process RPC request, if no action has been specified
-rw-r--r--rpc.php8
1 files changed, 7 insertions, 1 deletions
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();