Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-05-15 04:55:36 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-05-15 04:55:36 +0300
commit31c21b070adb77893a4d232e1f2b00d2c11d5312 (patch)
tree502bf2d6f636e5a490135bccb9e6ebc9db0174a7 /setup
parentb2a3d6cfb2a33cf66bba2635f810c99f11ccf9bd (diff)
Adding token would not harm
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'setup')
-rw-r--r--setup/config.php6
-rw-r--r--setup/frames/servers.inc.php2
-rw-r--r--setup/lib/form_processing.lib.php2
3 files changed, 5 insertions, 5 deletions
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) {
. ' <small>(' . htmlspecialchars($cf->getServerDSN($id)) . ')</small>';
} 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;