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
diff options
context:
space:
mode:
authorRouslan Placella <rouslan@placella.com>2012-06-02 21:06:11 +0400
committerRouslan Placella <rouslan@placella.com>2012-06-03 02:59:46 +0400
commit9605deb78e54e20ceacbf47f3967f28907189615 (patch)
treeeac572b0ccf7506178d9fb6c1e0627733aa46084 /server_privileges.php
parent8fe94907282a157e3e5d3b63faebfa9df98b5420 (diff)
Fixed missing globals
Diffstat (limited to 'server_privileges.php')
-rw-r--r--server_privileges.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/server_privileges.php b/server_privileges.php
index 23ae8977a1..27bdf30c44 100644
--- a/server_privileges.php
+++ b/server_privileges.php
@@ -28,13 +28,15 @@ $get_params = array(
'dbname',
'hostname',
'initial',
+ 'old_username',
+ 'old_hostname',
'tablename',
'username',
'viewing_mode'
);
foreach ($get_params as $one_get_param) {
- if (isset($_GET[$one_get_param])) {
- $GLOBALS[$one_get_param] = $_GET[$one_get_param];
+ if (isset($_REQUEST[$one_get_param])) {
+ $GLOBALS[$one_get_param] = $_REQUEST[$one_get_param];
}
}
@@ -1425,7 +1427,7 @@ if (isset($_REQUEST['change_pw'])) {
// similar logic in user_password.php
$message = '';
- if ($nopass == 0 && isset($pma_pw) && isset($pma_pw2)) {
+ if (empty($_REQUEST['nopass']) && isset($pma_pw) && isset($pma_pw2)) {
if ($pma_pw != $pma_pw2) {
$message = PMA_Message::error(__('The passwords aren\'t the same!'));
} elseif (empty($pma_pw) || empty($pma_pw2)) {