From 15f7b4a8742210c2722f27e8ae7184f7be4da4f1 Mon Sep 17 00:00:00 2001 From: Simon Green Date: Wed, 25 Jan 2012 18:11:04 -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 8ac10ea12..8a7b90c3e 100644 --- a/Bugzilla/BugUrl/JIRA.pm +++ b/Bugzilla/BugUrl/JIRA.pm @@ -18,7 +18,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