2009-05-27 Esteban Sanchez <estebans@artica.es>

* general/header.php: Added code to ignored parameters. Fixes #2779381

	* include/functions_ui.php: Ignore form operations on get_url_refresh()



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1712 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
esanchezm 2009-05-27 11:04:11 +00:00
parent af349ff4db
commit 72eb5ae1ff
3 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-05-27 Esteban Sanchez <estebans@artica.es>
* 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 <estebans@artica.es>
* godmode/agentes/configurar_agente.php: Use pandora functions to

View File

@ -70,7 +70,7 @@ echo "</a>";
// Third column
// Autorefresh
echo '</td><td width="20%">';
$ignored_params = array ('agent_config' => false);
$ignored_params = array ('agent_config' => false, 'code' => false);
if ($config["refr"]) {
$ignored_params['refr'] = 0;
echo '<a id="autorefresh" class="white_grey_bold" href="'.get_url_refresh ($ignored_params).'"><img src="images/page_refresh.png" class="bot" alt="lightning" />&nbsp;'. __('Autorefresh');

View File

@ -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.'&amp;';
}
@ -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.'&amp;';
}
}