diff options
Diffstat (limited to 'Bugzilla/BugUrl/MantisBT.pm')
-rw-r--r-- | Bugzilla/BugUrl/MantisBT.pm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Bugzilla/BugUrl/MantisBT.pm b/Bugzilla/BugUrl/MantisBT.pm index 02a17a64d..3d49ede69 100644 --- a/Bugzilla/BugUrl/MantisBT.pm +++ b/Bugzilla/BugUrl/MantisBT.pm @@ -9,15 +9,15 @@ package Bugzilla::BugUrl::MantisBT; use strict; use base qw(Bugzilla::BugUrl); -use Bugzilla::Error; -use Bugzilla::Util; - ############################### #### Methods #### ############################### sub should_handle { my ($class, $uri) = @_; + + # MantisBT URLs look like the following ('bugs' directory is optional): + # http://www.mantisbt.org/bugs/view.php?id=1234 return ($uri->path_query =~ m|view\.php\?id=\d+$|) ? 1 : 0; } @@ -26,9 +26,6 @@ sub _check_value { my $uri = $class->SUPER::_check_value(@_); - # MantisBT URLs look like the following ('bugs' directory is optional): - # http://www.mantisbt.org/bugs/view.php?id=1234 - # Remove any # part if there is one. $uri->fragment(undef); |