X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=lib%2FPackages%2FHTML.pm;h=90c95691805b873655feeafca185a9cb08d1ad48;hb=344794b96a00a8df993bbc0743d05715d2682681;hp=74939717c97280668bf871d405e6b4c593571912;hpb=264b1245548e5c5494778a813e5e48897168b008;p=deb%2Fpackages.git diff --git a/lib/Packages/HTML.pm b/lib/Packages/HTML.pm index 7493971..90c9569 100644 --- a/lib/Packages/HTML.pm +++ b/lib/Packages/HTML.pm @@ -72,7 +72,7 @@ sub pdeplegend { my $str = "
\n".sprintf( gettext( "%s is responsible for this Debian package." ). - "\n", - "$maint_name" - ); - } else { - my $up_str = "$maint_name"; - my @uploaders_str; - foreach (@uploaders) { - push @uploaders_str, "[1]\">$_->[0]"; + my $uploaders = $page->get_src( 'uploaders' ); + if ($uploaders && @$uploaders) { + foreach (@$uploaders) { + $_->[0] = encode_entities( $_->[0], '&<>' ); + } + my ($maint_name, $maint_mail) = @{shift @$uploaders}; + unless (@$uploaders) { + $str .= "
\n".sprintf( gettext( "%s is responsible for this Debian package." ). + "\n", + "$maint_name" + ); + } else { + my $up_str = "$maint_name"; + my @uploaders_str; + foreach (@$uploaders) { + push @uploaders_str, "[1]\">$_->[0]"; + } + my $last_up = pop @uploaders_str; + $up_str .= ", ".join ", ", @uploaders_str if @uploaders_str; + $up_str .= sprintf( gettext( " and %s are responsible for this Debian package." ), $last_up ); + $str .= "
\n$up_str "; } - my $last_up = pop @uploaders_str; - $up_str .= ", ".join ", ", @uploaders_str if @uploaders_str; - $up_str .= sprintf( gettext( " and %s are responsible for this Debian package." ), $last_up ); - $str .= "
\n$up_str "; } - $str .= sprintf( gettext( "See the developer information for %s." )."
", $QA_URL.$source, $name ); + $str .= sprintf( gettext( "See the developer information for %s." )."", $QA_URL.$source, $name ) if $source; } if ($info{search}) { @@ -501,7 +503,7 @@ MENU $KEYWORDS_LINE $DESC_LINE $meta - +