use strict;
use CGI qw/:standard/;
-require '/usr/lib/debbugs/errorlib';
+#require '/usr/lib/debbugs/errorlib';
#require '/usr/lib/debbugs/common.pl';
require '/debian/home/ajt/newajbug/common.pl';
$indexentry .= "Package: <A HREF=\"" . pkgurl($status{package}) . "\">"
.htmlsanit($status{package})."</A>;\n";
-$indexentry .= ";Reported by: ".&sani($status{originator});
-$indexentry .= ";\nKeywords: ".&sani($status{keywords})
+$indexentry .= ";Reported by: ".htmlsanit($status{originator});
+$indexentry .= ";\nKeywords: ".htmlsanit($status{keywords})
if length($status{keywords});
my @merged= split(/ /,$status{mergedwith});
$submitted = ";\ndated ".$dummy;
if (length($status{done})) {
- $indexentry .= ";\n<strong>Done:</strong> ".&sani($status{done});
+ $indexentry .= ";\n<strong>Done:</strong> ".htmlsanit($status{done});
} elsif (length($status{forwarded})) {
- $indexentry .= ";\n<strong>Forwarded</strong> to ".&sani($status{forwarded});
+ $indexentry .= ";\n<strong>Forwarded</strong> to ".htmlsanit($status{forwarded});
}
my ($short, $tmaint);
$short = $ref; $short =~ s/^\d+/#$&/;
$tmaint = defined($maintainer{$tpack}) ? $maintainer{$tpack} : '(unknown)';
$descriptivehead= $indexentry.$submitted.";\nMaintainer for $status{package} is\n".
- '<A href="http://'.$debbugs::gWebDomain.'/db/ma/l'.&maintencoded($tmaint).'.html">'.&sani($tmaint).'</A>.';
+ '<A href="http://'.$debbugs::gWebDomain.'/db/ma/l'.&maintencoded($tmaint).'.html">'.htmlsanit($tmaint).'</A>.';
my $buglog = buglog($ref);
open L, "<$buglog" or &quit("open log for $ref: $!");
$pl =~ s/\n+$//;
m/^Received: \(at (\S+)\) by (\S+)\;/
|| &quit("bad line \`$pl' in state incoming-recv");
- $this = "<h2>Message received at ".&sani("$1\@$2")
+ $this = "<h2>Message received at ".htmlsanit("$1\@$2")
. ":</h2><br>\n<pre>\n$_";
$normstate= 'go';
} elsif ($normstate eq 'html') {
$this .= $_;
} elsif ($normstate eq 'go') {
- $this .= &sani($_);
+ $this .= htmlsanit($_);
} elsif ($normstate eq 'go-nox') {
next if !s/^X//;
- $this .= &sani($_);
+ $this .= htmlsanit($_);
} elsif ($normstate eq 'recips') {
if (m/^-t$/) {
$this = "<h2>Message sent:</h2><br>\n";
} else {
s/\04/, /g; s/\n$//;
- $this = "<h2>Message sent to ".&sani($_).":</h2><br>\n";
+ $this = "<h2>Message sent to ".htmlsanit($_).":</h2><br>\n";
}
$normstate= 'kill-body';
} elsif ($normstate eq 'autocheck') {
-title => "$debbugs::gProject $debbugs::gBug report logs - $short");
print h1("$debbugs::gProject $debbugs::gBug report logs - $short<br>\n"
- . sani($status{subject}));
+ . htmlsanit($status{subject}));
print "$descriptivehead\n";
print hr;
my %maintainers = getmaintainers();
my $chk = sub {
my %d = @_;
- ($maintemail = $maintainers{$d{"pkg"}}) =~ s/\s*\(.*\)\s*//;
+ ($maintemail = $maintainers{$d{"pkg"}} || "") =~ s/\s*\(.*\)\s*//;
if ($maintemail =~ m/<(.*)>/) { $maintemail = $1 }
return $maintemail eq $maint;
};
sub maintencbugs {
my $maint = shift;
my %maintainers = getmaintainers();
- return getbugs(sub {my %d=@_; return maintencoded($maintainers{$d{"pkg"}}) eq $maint});
+ return getbugs(sub {my %d=@_; return maintencoded($maintainers{$d{"pkg"}} || "") eq $maint});
}
sub pkgbugs {
require '/debian/home/ajt/newajbug/common.pl';
#require '/usr/lib/debbugs/common.pl';
-require '/usr/lib/debbugs/errorlib';
+#require '/usr/lib/debbugs/errorlib';
require '/etc/debbugs/config';
require '/etc/debbugs/text';
my $dtime=`date -u '+%H:%M:%S GMT %a %d %h'`;
chomp($dtime);
my $tail_html = $debbugs::gHTMLTail;
+$tail_html = $debbugs::gHTMLTail;
$tail_html =~ s/SUBSTITUTE_DTIME/$dtime/;
my $tag;
print h1("$debbugs::gProject $Archived $debbugs::gBug report logs: $tag");
-if (defined $maintainer{$pkg}) {
- print "<p>Maintainer for $pkg is <a href=\""
- . mainturl($maintainer{$pkg}) . "\">"
- . htmlsanit($maintainer{$pkg}) . "</a>.</p>\n";
-}
-
if (defined $pkg) {
+ if (defined $maintainer{$pkg}) {
+ print "<p>Maintainer for $pkg is <a href=\""
+ . mainturl($maintainer{$pkg}) . "\">"
+ . htmlsanit($maintainer{$pkg}) . "</a>.</p>\n";
+ }
print "<p>Note that with multi-binary packages there may be other\n";
print "reports filed under the different binary package names.</p>\n";
} elsif (defined $maint || defined $maintenc) {