diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 21c3735ca4..64b3d987c2 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2009-05-27 Esteban Sanchez + + * general/header.php: Added code to ignored parameters. Fixes #2779381 + + * include/functions_ui.php: Ignore form operations on get_url_refresh() + 2009-05-27 Esteban Sanchez * godmode/agentes/configurar_agente.php: Use pandora functions to diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index 804d964c63..3a9999b996 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -70,7 +70,7 @@ echo ""; // Third column // Autorefresh echo ''; -$ignored_params = array ('agent_config' => false); +$ignored_params = array ('agent_config' => false, 'code' => false); if ($config["refr"]) { $ignored_params['refr'] = 0; echo 'lightning '. __('Autorefresh'); diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index cf9af1c048..a710c6dd34 100644 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -1179,6 +1179,14 @@ function get_url_refresh ($params = false, $relative = true, $add_post = true) { foreach ($_GET as $key => $value) { if (isset ($params[$key])) continue; + if (strstr ($key, 'create')) + continue; + if (strstr ($key, 'update')) + continue; + if (strstr ($key, 'new')) + continue; + if (strstr ($key, 'delete')) + continue; $url .= $key.'='.$value.'&'; } @@ -1186,6 +1194,14 @@ function get_url_refresh ($params = false, $relative = true, $add_post = true) { foreach ($_POST as $key => $value) { if (isset ($params[$key])) continue; + if (strstr ($key, 'create')) + continue; + if (strstr ($key, 'update')) + continue; + if (strstr ($key, 'new')) + continue; + if (strstr ($key, 'delete')) + continue; $url .= $key.'='.$value.'&'; } }