Bug 250080: Fix regression causing blank regexp to make all users group members
r=erik, justdave a=justdave git-svn-id: svn://10.0.0.236/trunk@158826 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
6bc6864283
commit
4c42de310e
@ -64,7 +64,7 @@ sub RederiveRegexp ($$)
|
|||||||
AND grant_type = ? and isbless = 0");
|
AND grant_type = ? and isbless = 0");
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
while (my ($uid, $login) = $sth->fetchrow_array()) {
|
while (my ($uid, $login) = $sth->fetchrow_array()) {
|
||||||
if ($login =~ m/$regexp/i)
|
if (($regexp =~ /\S+/) && ($login =~ m/$regexp/i))
|
||||||
{
|
{
|
||||||
$sthadd->execute($uid, $gid, GRANT_REGEXP);
|
$sthadd->execute($uid, $gid, GRANT_REGEXP);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user