From: lpsolit%gmail.com <> Date: Thu, 6 Jul 2006 19:09:28 +0000 (+0000) Subject: Bug 282025: Queries with group pronouns should accept non-word characters in group... X-Git-Tag: bugzilla-2.23.2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cbbaecdd08c8206b640518ab65abfaf76f68d8b;p=thirdparty%2Fbugzilla.git Bug 282025: Queries with group pronouns should accept non-word characters in group names - Patch by Dave Miller r=joel a=myk --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index e8da89204f..bdf764f368 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -409,7 +409,7 @@ sub init { my %funcsbykey; my @funcdefs = ( - "^(?:assigned_to|reporter|qa_contact),(?:notequals|equals|anyexact),%group\\.(\\w+)%" => sub { + "^(?:assigned_to|reporter|qa_contact),(?:notequals|equals|anyexact),%group\\.([^%]+)%" => sub { my $group = $1; my $groupid = Bugzilla::Group::ValidateGroupName( $group, ($user)); $groupid || ThrowUserError('invalid_group_name',{name => $group}); @@ -451,7 +451,7 @@ sub init { $f = "COALESCE(map_$f.login_name,'')"; }, - "^(?:cc),(?:notequals|equals|anyexact),%group\\.(\\w+)%" => sub { + "^(?:cc),(?:notequals|equals|anyexact),%group\\.([^%]+)%" => sub { my $group = $1; my $groupid = Bugzilla::Group::ValidateGroupName( $group, ($user)); $groupid || ThrowUserError('invalid_group_name',{name => $group});