Fixed bug #549887 - Db name with "\_" changed when granting
This commit is contained in:
parent
4465f15544
commit
724ddddd51
@ -1340,7 +1340,7 @@ else if (isset($grants) && $grants) {
|
||||
// Escape wilcard characters if required
|
||||
if (isset($dbgrant) && !$anydb && !$newdb) {
|
||||
$re = '(^|(\\\\\\\\)+|[^\])(_|%)'; // non-escaped wildcards
|
||||
$dbgrant = ereg_replace($re, '\\\\3', $dbgrant);
|
||||
$dbgrant = ereg_replace($re, '\\1\\\\3', $dbgrant);
|
||||
}
|
||||
|
||||
if (!$newdb) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user