Merge branch 'QA_4_1'
This commit is contained in:
commit
20770f3f33
@ -71,6 +71,7 @@ phpMyAdmin - ChangeLog
|
||||
- bug #4075 Support A10 Networks load balancer
|
||||
- bug #4083 row deleting isn't binlogs friendly
|
||||
- bug #4163 Setup script does not recognize manually-configured server
|
||||
- bug #4158 Events page says no privileges with ALL PRIVILEGES
|
||||
|
||||
4.0.9.0 (2013-11-04)
|
||||
- bug #4104 Can't edit updatable view when searching
|
||||
|
||||
@ -3850,7 +3850,15 @@ class PMA_Util
|
||||
// (wildcard characters appear as being quoted with a backslash
|
||||
// when querying TABLE_SCHEMA.SCHEMA_PRIVILEGES)
|
||||
$db = str_replace(array('%', '_'), array('\%', '\_'), $db);
|
||||
$query .= " AND TABLE_SCHEMA='%s'";
|
||||
/*
|
||||
* This is to take into account a wildcard db privilege
|
||||
* so we replace % by .* and _ by . to be able to compare
|
||||
* with REGEXP.
|
||||
*
|
||||
* Also, we need to double the inner % to please sprintf().
|
||||
*/
|
||||
$query .= " AND '%s' REGEXP"
|
||||
. " REPLACE(REPLACE(TABLE_SCHEMA, '_', '.'), '%%', '.*')";
|
||||
$schema_privileges = $GLOBALS['dbi']->fetchValue(
|
||||
sprintf(
|
||||
$query,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user