From: Mike Frysinger Date: Mon, 8 Jun 2015 05:11:32 +0000 (+0800) Subject: Bug 1167919: See Also: support debbugs.gnu.org tracker X-Git-Tag: release-5.1.1~237 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4c8d62859f29338803ce5321029e330f8b28031;p=thirdparty%2Fbugzilla.git Bug 1167919: See Also: support debbugs.gnu.org tracker r=glob,a=glob --- diff --git a/Bugzilla/BugUrl/Debian.pm b/Bugzilla/BugUrl/Debian.pm index 2b611aa57b..b726b0b5ab 100644 --- a/Bugzilla/BugUrl/Debian.pm +++ b/Bugzilla/BugUrl/Debian.pm @@ -23,7 +23,10 @@ sub should_handle { # Debian BTS URLs can look like various things: # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1234 # http://bugs.debian.org/1234 - return (lc($uri->authority) eq 'bugs.debian.org' + # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=123 + # https://debbugs.gnu.org/123 + return ((lc($uri->authority) eq 'bugs.debian.org' + or lc($uri->authority) eq 'debbugs.gnu.org') and (($uri->path =~ /bugreport\.cgi$/ and $uri->query_param('bug') =~ m|^\d+$|) or $uri->path =~ m|^/\d+$|)) ? 1 : 0; @@ -37,7 +40,7 @@ sub _check_value { # This is the shortest standard URL form for Debian BTS URLs, # and so we reduce all URLs to this. $uri->path =~ m|^/(\d+)$| || $uri->query_param('bug') =~ m|^(\d+)$|; - $uri = new URI("http://bugs.debian.org/$1"); + $uri = new URI('https://' . $uri->authority . '/' . $1); return $uri; } diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index d39dfcbc4f..d3814f7f32 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -310,7 +310,7 @@ installation.
  • A b[% %]ug on launchpad.net.
  • An issue on code.google.com.
  • -
  • A b[% %]ug on b[% %]ugs.debian.org.
  • +
  • A b[% %]ug on b[% %]ugs.debian.org or deb[% %]ugs.gnu.org.
  • An issue in a JIRA installation.
  • A ticket in a Trac installation.
  • A b[% %]ug in a MantisBT installation.