summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.php b/index.php
index 26a0946f0..35168621b 100644
--- a/index.php
+++ b/index.php
@@ -23,6 +23,11 @@ define('LACONICA', true);
require_once(INSTALLDIR . "/lib/common.php");
$action = $_REQUEST['action'];
+
+if (!$action) {
+ common_redirect(common_local_url('public'));
+}
+
$actionfile = INSTALLDIR."/actions/$action.php";
if (file_exists($actionfile)) {