web installer: improve DB permissions check
MySQL-only: improve regex to make sure we are checking permission on the correct database, not on another database (when the DB name is a subset of the DB user's name)
This commit is contained in:
parent
3f5c71daa5
commit
17e4626dff
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ elsif ( $step && $step == 2 ) {
|
|||
my $grantaccess;
|
||||
while ( my ($line) = $rq->fetchrow ) {
|
||||
my $dbname = $info{dbname};
|
||||
if ( $line =~ m/$dbname/ || index( $line, '*.*' ) > 0 ) {
|
||||
if ( $line =~ m/^GRANT (.*?) ON `$dbname`\.\*/ || index( $line, '*.*' ) > 0 ) {
|
||||
$grantaccess = 1
|
||||
if (
|
||||
index( $line, 'ALL PRIVILEGES' ) > 0
|
||||
|
|
Loading…
Reference in a new issue