summaryrefslogtreecommitdiff
path: root/index_edit.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-05-13 06:00:53 +0000
committerfisharebest <fisharebest@gmail.com>2010-05-13 06:00:53 +0000
commit99c6fdda710b6c0b7d6c01be6961560430512eb5 (patch)
tree3eb23d7ca878ae40f812db7bc5c5f225aa7e42c4 /index_edit.php
parentd9a2cdd2b9ba078cbe74014ea800ee4ef79c0662 (diff)
downloadwebtrees-99c6fdda710b6c0b7d6c01be6961560430512eb5.tar.gz
webtrees-99c6fdda710b6c0b7d6c01be6961560430512eb5.tar.bz2
webtrees-99c6fdda710b6c0b7d6c01be6961560430512eb5.zip
#579752 New Block configuration - On This Day
Diffstat (limited to 'index_edit.php')
-rw-r--r--index_edit.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/index_edit.php b/index_edit.php
index f75d2116f2..60aa5e512a 100644
--- a/index_edit.php
+++ b/index_edit.php
@@ -34,8 +34,13 @@ define('WT_SCRIPT_NAME', 'index_edit.php');
require './includes/session.php';
require_once WT_ROOT.'includes/index_cache.php';
+$ctype=safe_REQUEST($_REQUEST, 'ctype', array('user', 'gedcom'));
+
+if (!$ctype) {
+ die("Internal error - missing ctype parameter");
+}
+
if (isset($_REQUEST['action'])) $action = $_REQUEST['action'];
-if (isset($_REQUEST['ctype'])) $ctype = $_REQUEST['ctype'];
if (isset($_REQUEST['main'])) $main = $_REQUEST['main'];
if (isset($_REQUEST['right'])) $right = $_REQUEST['right'];
if (isset($_REQUEST['setdefault'])) $setdefault = $_REQUEST['setdefault'];
@@ -55,7 +60,6 @@ if (!WT_USER_ID) {
if (!WT_USER_IS_ADMIN) $setdefault=false;
if (!isset($action)) $action='';
-if (!isset($ctype)) $ctype='user';
if (!isset($main)) $main=array();
if (!isset($right)) $right=array();
if (!isset($setdefault)) $setdefault=false;