Commit 15f7b4a8 authored by Simon Green's avatar Simon Green Committed by Tiago Mello

Bug 717217: The regexp in Bugzilla::BugUrl::JIRA::should_handle() isn't

restrictive enough (min two letters required) r=timello, a=LpSolit
parent 4ec36598
...@@ -18,7 +18,7 @@ use Bugzilla::Util; ...@@ -18,7 +18,7 @@ use Bugzilla::Util;
sub should_handle { sub should_handle {
my ($class, $uri) = @_; 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 { sub _check_value {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment