bug 591602
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$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>
|
||||
* Documentation.html:
|
||||
- Updates for SQL Parser
|
||||
|
@@ -993,9 +993,16 @@ if (PMA_mysql_error()) {
|
||||
include('./footer.inc.php3');
|
||||
exit();
|
||||
}
|
||||
$result = @PMA_mysql_query('SELECT COUNT(Password) FROM mysql.user');
|
||||
$password_field = (($result && PMA_mysql_result($result, 0)) ? 'Password' : 'password');
|
||||
// The previous logic did not work if the password field is named "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
|
||||
|
Reference in New Issue
Block a user