diff options
author | lpsolit%gmail.com <> | 2006-07-06 21:09:28 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-07-06 21:09:28 +0200 |
commit | 2cbbaecdd08c8206b640518ab65abfaf76f68d8b (patch) | |
tree | 1dd5693e9b34a9f60ac190ea732821acd5b0028f | |
parent | d0724475098f99c584a7b013f5c5076b6e2b4bba (diff) | |
download | bugzilla-2cbbaecdd08c8206b640518ab65abfaf76f68d8b.tar.gz bugzilla-2cbbaecdd08c8206b640518ab65abfaf76f68d8b.tar.xz |
Bug 282025: Queries with group pronouns should accept non-word characters in group names - Patch by Dave Miller <justdave@bugzilla.org> r=joel a=myk
-rw-r--r-- | Bugzilla/Search.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index e8da89204..bdf764f36 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}); |