From: Kohei Yoshino Date: Thu, 25 Jul 2019 16:07:22 +0000 (-0400) Subject: no bug - Fix an error in regex X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a37b74af880c33e5f76aa56758d070df526f2086;p=thirdparty%2Fbugzilla.git no bug - Fix an error in regex --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 13a4ca279..9f536792e 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -2947,7 +2947,7 @@ sub _component_nonchanged { # Allow to search product/component pairs like "Core::General" with a simple # operator. Since product/component names may include spaces, other operators # like `anywords` won't work. - if ($args->{operator} =~ /^(:?(:?not)?equals)$/ + if ($args->{operator} =~ /^(?:(?:not)?equals)$/ && $args->{value} =~ /^(?:(.+)\s*::\s*)?(.+)$/) { $product = $1;