Fixed missing wildcard character from regex string.
This commit is contained in:
@ -2140,7 +2140,9 @@ int add_wildcard_users(USERS *users, char* name, char* host, char* password, cha
|
|||||||
|
|
||||||
while(ptr)
|
while(ptr)
|
||||||
{
|
{
|
||||||
memmove(ptr,ptr+1,(len - (ptr - restr)) + 1);
|
memmove(ptr+1,ptr,(len - (ptr - restr)) + 1);
|
||||||
|
*ptr++ = '.';
|
||||||
|
*ptr = '*';
|
||||||
len = strlen(restr);
|
len = strlen(restr);
|
||||||
ptr = strchr(restr,'%');
|
ptr = strchr(restr,'%');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user