From: Simon Green Date: Wed, 25 Jan 2012 20:14:08 +0000 (-0200) Subject: Bug 717217: The regexp in Bugzilla::BugUrl::JIRA::should_handle() isn't X-Git-Tag: bugzilla-4.2rc2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acfaac1cb3187cb8e2c08f541788f16822fe98d9;p=thirdparty%2Fbugzilla.git Bug 717217: The regexp in Bugzilla::BugUrl::JIRA::should_handle() isn't restrictive enough (min two letters required) r=timello, a=LpSolit --- diff --git a/Bugzilla/BugUrl/JIRA.pm b/Bugzilla/BugUrl/JIRA.pm index 97014e8a2a..d0adcfed81 100644 --- a/Bugzilla/BugUrl/JIRA.pm +++ b/Bugzilla/BugUrl/JIRA.pm @@ -31,7 +31,7 @@ use Bugzilla::Util; sub should_handle { my ($class, $uri) = @_; - return ($uri->path =~ m|/browse/[A-Z]+-\d+$|) ? 1 : 0; + return ($uri->path =~ m|/browse/[A-Z][A-Z]+-\d+$|) ? 1 : 0; } sub _check_value {