bug 591602

This commit is contained in:
Marc Delisle
2002-08-09 12:16:29 +00:00
parent 39351fc09b
commit 5e41cccf87
2 changed files with 12 additions and 2 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2002-08-09 Marc Delisle <lem9@users.sourceforge.net>
* user_details.php3: bug 591602, mysql.user lowercase "password"
2002-08-09 Robin Johnson <robbat2@users.sourceforge.net> 2002-08-09 Robin Johnson <robbat2@users.sourceforge.net>
* Documentation.html: * Documentation.html:
- Updates for SQL Parser - Updates for SQL Parser

View File

@@ -993,9 +993,16 @@ if (PMA_mysql_error()) {
include('./footer.inc.php3'); include('./footer.inc.php3');
exit(); exit();
} }
$result = @PMA_mysql_query('SELECT COUNT(Password) FROM mysql.user'); // The previous logic did not work if the password field is named "password":
$password_field = (($result && PMA_mysql_result($result, 0)) ? 'Password' : 'password'); //$result = @PMA_mysql_query('SELECT COUNT(Password) FROM mysql.user');
//$password_field = (($result && PMA_mysql_result($result, 0)) ? 'Password' : 'password');
$result = @PMA_mysql_query('Select * from user limit 1');
if ($result) {
// assumes that the password is always the third field of mysql.user
$field_info = PMA_mysql_fetch_field($result,2);
$password_field = $field_info->name;
}
/** /**
* Autocomplete feature of IE kills the "onchange" event handler and it must be * Autocomplete feature of IE kills the "onchange" event handler and it must be