From acfaac1cb3187cb8e2c08f541788f16822fe98d9 Mon Sep 17 00:00:00 2001 From: Simon Green Date: Wed, 25 Jan 2012 18:14:08 -0200 Subject: Bug 717217: The regexp in Bugzilla::BugUrl::JIRA::should_handle() isn't restrictive enough (min two letters required) r=timello, a=LpSolit --- Bugzilla/BugUrl/JIRA.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/BugUrl') diff --git a/Bugzilla/BugUrl/JIRA.pm b/Bugzilla/BugUrl/JIRA.pm index 97014e8a2..d0adcfed8 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 { -- cgit v1.2.3-24-g4f1b