Skip to content

Commit

Permalink
fixed bug #487673 - revoke 'reference'
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Chapeaux committed Dec 1, 2001
1 parent 6e70f52 commit 2f8001d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$

2001-12-01 Lo�c Chapeaux <lolo@phpheaven.net>
* user_details.php3, lines 83-88: fixed bug #487673 - revoke 'reference'.

2001-11-30 Lo�c Chapeaux <lolo@phpheaven.net>
* libraries/display_tbl.lib.php3: fixed bug #486509 - Text fields don't
display newlines.
Expand Down
13 changes: 9 additions & 4 deletions user_details.php3
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,20 @@ function PMA_tableGrants(&$host_db_result, $dbcheck = FALSE) {
$i = 0;
while ($usr_row = mysql_fetch_row($result)) {
if (eregi('GRANT (.*) ON ([^\.]+).([^\.]+) TO .*$', $usr_row[0], $parts)) {
$priv = ($parts[1] != 'USAGE') ? trim($parts[1]) : '';
// loic1: bug #487673 - revoke 'reference'
if ($parts[1] == 'USAGE') {
$priv = '';
} else {
$priv = ereg_replace('REFERENCE([^S]|$)', 'REFERENCES', trim($parts[1]));
}
$db = $parts[2];
$table = trim($parts[3]);
$grantopt = eregi('WITH GRANT OPTION$', $usr_row[0]);
} else {
$priv = '';
$db = '&nbsp';
$table = '&nbsp';
$column = '&nbsp';
$db = '&nbsp;';
$table = '&nbsp;';
$column = '&nbsp;';
$grantopt = FALSE;
} // end if...else

Expand Down

0 comments on commit 2f8001d

Please sign in to comment.