]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1167919: See Also: support debbugs.gnu.org tracker
authorMike Frysinger <vapier@gentoo.org>
Mon, 8 Jun 2015 05:11:32 +0000 (13:11 +0800)
committerByron Jones <glob@mozilla.com>
Mon, 8 Jun 2015 05:11:32 +0000 (13:11 +0800)
r=glob,a=glob

Bugzilla/BugUrl/Debian.pm
template/en/default/global/user-error.html.tmpl

index 2b611aa57bd38a83a1215d352a2d84c88565921b..b726b0b5ab001ca6671c8a4fdae9f88781d443a3 100644 (file)
@@ -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;
 }
index d39dfcbc4ff56c4988ab33146027b51a3d7f686d..d3814f7f3291b57861511cb207232860ff6b36d7 100644 (file)
           installation.</li>
         <li>A b[% %]ug on launchpad.net.</li>
         <li>An issue on code.google.com.</li>
-        <li>A b[% %]ug on b[% %]ugs.debian.org.</li>
+        <li>A b[% %]ug on b[% %]ugs.debian.org or deb[% %]ugs.gnu.org.</li>
         <li>An issue in a JIRA installation.</li>
         <li>A ticket in a Trac installation.</li>
         <li>A b[% %]ug in a MantisBT installation.</li>