From c1647bfcbfb3faaad5ba08041e82c4207b2a2786 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 4 Mar 2008 16:56:19 +0000 Subject: [PATCH] added a get-parameter "empty_post=1" if process_exec redirects to the app, because the _POST array is completly empty. That happens if post_max_size <= max_upload_size and is neccessary to give an adequte error-message about the failed upload in filemanager. --- etemplate/inc/class.uietemplate.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index 28d3f74c5c..89e5b2eaf2 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -429,7 +429,7 @@ foreach($sess as $key => $val) if ($this->sitemgr) return false; //echo "uitemplate::process_exec() id='$_POST[etemplate_exec_id]' invalid session-data !!!"; _debug_array($_SESSION); // this prevents an empty screen, if the sessiondata gets lost somehow - $this->location(array('menuaction' => $_GET['menuaction'])); + $this->location(array('menuaction' => $_GET['menuaction'],'post_empty' => (int)!$_POST)); } $this->name_vars = $session_data['name_vars']; if (isset($submit_button) && !empty($submit_button))