From ec2116862673315ee5f1b9a564012bf20f22be74 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 8 Sep 2008 11:26:01 +0000 Subject: [PATCH] Added check for non posted variables (if limited by certain PHP plugins) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12374 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/main.php | 11 +++++++++++ gosa-core/ihtml/themes/default/framework.tpl | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index 77bcbc9b1..4df1c769c 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -369,6 +369,17 @@ if (is_file("$plugin_dir/main.inc")){ $smarty->assign("msg_dialogs", msg_dialog::get_dialogs()); $smarty->assign("contents", $display); +/* If there's some post, take a look if everything is there... */ +if (isset($_POST) && count($_POST)){ + if (!isset($_POST['php_c_check'])){ + msg_dialog::display( + _("Configuration Error"), + sprintf(_("FATAL: not all POST variables have been transfered by PHP - please inform your administrator!")), + FATAL_ERROR_DIALOG); + exit(); + } +} + /* Assign erros to smarty */ if (session::is_set('errors')){ $smarty->assign("errors", session::get('errors')); diff --git a/gosa-core/ihtml/themes/default/framework.tpl b/gosa-core/ihtml/themes/default/framework.tpl index 22b4114c3..4d9f8f9b1 100644 --- a/gosa-core/ihtml/themes/default/framework.tpl +++ b/gosa-core/ihtml/themes/default/framework.tpl @@ -52,4 +52,4 @@ -{$errors}{$focus} +{$errors}{$focus} -- 2.30.2