fixed bug #487673 - revoke 'reference'
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2001-12-01 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
|
* user_details.php3, lines 83-88: fixed bug #487673 - revoke 'reference'.
|
||||||
|
|
||||||
2001-11-30 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2001-11-30 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* libraries/display_tbl.lib.php3: fixed bug #486509 - Text fields don't
|
* libraries/display_tbl.lib.php3: fixed bug #486509 - Text fields don't
|
||||||
display newlines.
|
display newlines.
|
||||||
|
@@ -80,15 +80,20 @@ function PMA_tableGrants(&$host_db_result, $dbcheck = FALSE) {
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
while ($usr_row = mysql_fetch_row($result)) {
|
while ($usr_row = mysql_fetch_row($result)) {
|
||||||
if (eregi('GRANT (.*) ON ([^\.]+).([^\.]+) TO .*$', $usr_row[0], $parts)) {
|
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];
|
$db = $parts[2];
|
||||||
$table = trim($parts[3]);
|
$table = trim($parts[3]);
|
||||||
$grantopt = eregi('WITH GRANT OPTION$', $usr_row[0]);
|
$grantopt = eregi('WITH GRANT OPTION$', $usr_row[0]);
|
||||||
} else {
|
} else {
|
||||||
$priv = '';
|
$priv = '';
|
||||||
$db = ' ';
|
$db = ' ';
|
||||||
$table = ' ';
|
$table = ' ';
|
||||||
$column = ' ';
|
$column = ' ';
|
||||||
$grantopt = FALSE;
|
$grantopt = FALSE;
|
||||||
} // end if...else
|
} // end if...else
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user