[Phpmyadmin-devel] Create Database

Tom Sommer - dreamcoder.dk ts at dreamcoder.dk
Fri Jun 4 12:35:03 CEST 2004

Garvin Hicking wrote:
> Hi Tom! :)

Hey Garv, somehow I know you would answer :)

>>Where it is the ereg($re0 . '%|_', $show_grants_dbname) parts that
>>returns true (1).
>>Now, I don't really know what this ereg() does, except for this part:
>>$re0 = '(^|(\\\\\\\\)+|[^\])';
>>Which I am sorry to say I don't understand.
> As you are using an underscore in your grant, that one acts as a wildcard
> character; thus your user is effectively able to create databases matching that
> wildcard scheme.
> See our FAQ 6.10 or this recent support request
> https://sourceforge.net/tracker/?func=detail&atid=377408&aid=965109&group_id=23067
> for more information on that issue.

I see, okay I can understand it's function and it's purpose now.
I will just hack around it on my servers.


Tom Sommer

More information about the Developers mailing list