"SELECT" privilege on the "Password" field is no long required for the standard user

This commit is contained in:
Loïc Chapeaux
2001-10-27 12:09:54 +00:00
parent 60c83319fe
commit 2a56aad036
3 changed files with 26 additions and 16 deletions

View File

@@ -161,7 +161,7 @@ if ($server > 0)
$is_reload_priv = FALSE;
$is_superuser = @mysql_query('USE mysql', $userlink);
if ($dbh) {
$local_query = 'SELECT * FROM mysql.user WHERE User = \'' . sql_addslashes($cfgServer['user']) . '\'';
$local_query = 'SELECT Create_priv, Process_priv, Reload_priv FROM mysql.user WHERE User = \'' . sql_addslashes($cfgServer['user']) . '\' OR User = \'\'';
$rs_usr = mysql_query($local_query, $dbh); // Debug: or mysql_die('', $local_query, FALSE);
if ($rs_usr) {
$result_usr = mysql_fetch_array($rs_usr);