]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/CGI.pm
* Allow tag instead of tags; silently normalize it (closes: #567407).
[debbugs.git] / Debbugs / CGI.pm
index 53f0b5d27487de0018dacc1f7ec4aaa1015e2ec3..d51b9be0a469c5503f4e3648964c36bb2bb31e27 100644 (file)
@@ -400,11 +400,15 @@ sub package_links {
      }
      my @links = ();
      for my $type (qw(src package)) {
-         push @links, map {(munge_url('pkgreport.cgi?',
+         push @links, map {my $t_type = $type;
+                           if ($_ =~ s/^src://) {
+                               $t_type = 'src';
+                           }
+                           (munge_url('pkgreport.cgi?',
                                       %options,
-                                      $type => $_,
+                                      $t_type => $_,
                                      ),
-                            ($type eq 'src'?'src:':'').$_);
+                            ($t_type eq 'src'?'src:':'').$_);
                       } make_list($param{$type}) if exists $param{$type};
      }
      for my $type (qw(maint owner submitter correspondent)) {