From 31c21b070adb77893a4d232e1f2b00d2c11d5312 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Fri, 15 May 2015 07:25:36 +0530 Subject: Adding token would not harm Signed-off-by: Madhura Jayaratne --- setup/config.php | 6 +++--- setup/frames/servers.inc.php | 2 +- setup/lib/form_processing.lib.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'setup') diff --git a/setup/config.php b/setup/config.php index 4e09780f63..aa7fea33cf 100644 --- a/setup/config.php +++ b/setup/config.php @@ -32,7 +32,7 @@ if (PMA_ifSetOr($_POST['submit_clear'], '')) { $GLOBALS['ConfigFile']->resetConfigData(); // drop post data header('HTTP/1.1 303 See Other'); - header('Location: index.php'); + header('Location: index.php' . PMA_URL_getCommon()); exit; } elseif (PMA_ifSetOr($_POST['submit_download'], '')) { // @@ -60,7 +60,7 @@ if (PMA_ifSetOr($_POST['submit_clear'], '')) { include_once $config_file_path; $GLOBALS['ConfigFile']->setConfigData($cfg); header('HTTP/1.1 303 See Other'); - header('Location: index.php'); + header('Location: index.php' . PMA_URL_getCommon()); exit; } elseif (PMA_ifSetOr($_POST['submit_delete'], '')) { // @@ -68,7 +68,7 @@ if (PMA_ifSetOr($_POST['submit_clear'], '')) { // @unlink($config_file_path); header('HTTP/1.1 303 See Other'); - header('Location: index.php'); + header('Location: index.php' . PMA_URL_getCommon()); exit; } else { // diff --git a/setup/frames/servers.inc.php b/setup/frames/servers.inc.php index 859a784816..ea1f45ee0c 100644 --- a/setup/frames/servers.inc.php +++ b/setup/frames/servers.inc.php @@ -31,7 +31,7 @@ if ($mode == 'edit' && $server_exists) { . ' (' . htmlspecialchars($cf->getServerDSN($id)) . ')'; } elseif ($mode == 'remove' && $server_exists) { $cf->removeServer($id); - header('Location: index.php'); + header('Location: index.php' . PMA_URL_getCommon()); exit; } elseif ($mode == 'revert' && $server_exists) { // handled by process_formset() diff --git a/setup/lib/form_processing.lib.php b/setup/lib/form_processing.lib.php index 5a65588021..1e4a503f7c 100644 --- a/setup/lib/form_processing.lib.php +++ b/setup/lib/form_processing.lib.php @@ -72,7 +72,7 @@ function PMA_generateHeader303() { // drop post data header('HTTP/1.1 303 See Other'); - header('Location: index.php'); + header('Location: index.php' . PMA_URL_getCommon()); if (!defined('TESTSUITE')) { exit; -- cgit v1.2.3