Menu

#381 (ok 2.11.2) Incorrect login via URL

closed-accepted
None
1
2007-11-01
2007-10-21
No

Notice: Undefined index: pma_servername in F:\07PMA\PmaStable\ libraries\auth\cookie.auth.lib.php on line 381

when called like this:
http://127.0.0.1/07PMA/PmaStable/?pma_username=root

patch:
if (! empty($_REQUEST['pma_username'])) {
// The user just logged in
$GLOBALS['PHP_AUTH_USER'] = $_REQUEST['pma_username'];
$GLOBALS['PHP_AUTH_PW'] = empty($_REQUEST['pma_password']) ? '' : $_REQUEST['pma_password'];
- if ($GLOBALS['cfg']['AllowArbitraryServer']) {
+ if ($GLOBALS['cfg']['AllowArbitraryServer'] && isset($_REQUEST['pma_servername'])) {
$GLOBALS['pma_auth_server'] = $_REQUEST['pma_servername'];
}
return true;
}

Discussion

  • Jürgen Wind

    Jürgen Wind - 2007-10-22
    • summary: Undefined index: pma_servername if($cfg['AllowArbitraryServe --> Undef. Ind. pma_servername if $cfg['AllowArbitraryServer' ]
    • priority: 5 --> 3
     
  • Marc Delisle

    Marc Delisle - 2007-10-22
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2007-10-22

    Logged In: YES
    user_id=210714
    Originator: NO

    Merged in subversion, thanks.

     
  • Marc Delisle

    Marc Delisle - 2007-10-22
    • priority: 3 --> 1
    • summary: Undef. Ind. pma_servername if $cfg['AllowArbitraryServer' ] --> (ok 2.11.2) Incorrect login via URL
    • status: open --> open-accepted
     
  • Marc Delisle

    Marc Delisle - 2007-11-01
    • status: open-accepted --> closed-accepted