better fix
This commit is contained in:
@@ -6,7 +6,8 @@ $Id$
|
|||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
2002-08-09 Marc Delisle <lem9@users.sourceforge.net>
|
2002-08-09 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* user_details.php3: bug 591602, mysql.user lowercase "password"
|
* user_details.php3: bug 591602, mysql.user lowercase "password",
|
||||||
|
thanks to Thomas B<>hr <baehr at glaswald.de>
|
||||||
* lang/romanian: update, thanks to Valics Lehel
|
* lang/romanian: update, thanks to Valics Lehel
|
||||||
|
|
||||||
2002-08-09 Robin Johnson <robbat2@users.sourceforge.net>
|
2002-08-09 Robin Johnson <robbat2@users.sourceforge.net>
|
||||||
|
@@ -997,11 +997,11 @@ if (PMA_mysql_error()) {
|
|||||||
//$result = @PMA_mysql_query('SELECT COUNT(Password) FROM mysql.user');
|
//$result = @PMA_mysql_query('SELECT COUNT(Password) FROM mysql.user');
|
||||||
//$password_field = (($result && PMA_mysql_result($result, 0)) ? 'Password' : 'password');
|
//$password_field = (($result && PMA_mysql_result($result, 0)) ? 'Password' : 'password');
|
||||||
|
|
||||||
$result = @PMA_mysql_query('Select * from user limit 1');
|
// using a syntax that works with older and recent MySQL,
|
||||||
|
// and assumes that the field name ends with "assword":
|
||||||
|
$result = @PMA_mysql_query('SHOW FIELDS FROM user FROM mysql LIKE \'%assword\'');
|
||||||
if ($result) {
|
if ($result) {
|
||||||
// assumes that the password is always the third field of mysql.user
|
$password_field = PMA_mysql_result($result, 0);
|
||||||
$field_info = PMA_mysql_fetch_field($result,2);
|
|
||||||
$password_field = $field_info->name;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user