From 0c8689b3e2f2388d1bbe786e31ec347528fbb36f Mon Sep 17 00:00:00 2001 From: ajt <> Date: Sun, 8 Oct 2000 10:42:49 -0800 Subject: [PATCH] [project @ 2000-10-08 11:42:49 by ajt] keywords -> tags bold tags add ,'s and format nicely --- cgi/bugreport.cgi | 6 ++++-- cgi/common.pl | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index d114b1d..89eebbf 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -83,8 +83,10 @@ $indexentry .= "Package: " .htmlsanit($status{package}).";\n"; $indexentry .= ";Reported by: ".htmlsanit($status{originator}); -$indexentry .= ";\nKeywords: ".htmlsanit($status{keywords}) - if length($status{keywords}); +$indexentry .= ";\nTags: " + . htmlsanit(join(", ", sort(split(/\s+/, $status{tags})))) + . "" + if length($status{tags}); my @merged= split(/ /,$status{mergedwith}); if (@merged) { diff --git a/cgi/common.pl b/cgi/common.pl index 7ae481f..fc98cb5 100644 --- a/cgi/common.pl +++ b/cgi/common.pl @@ -54,8 +54,10 @@ sub htmlindexentrystatus { if (length($status{"package"})); $result .= $showseverity; $result .= "Reported by: " . htmlsanit($status{originator}); - $result .= ";\nKeywords: " . htmlsanit($status{keywords}) - if (length($status{keywords})); + $result .= ";\nTags: " + . htmlsanit(join(", ", sort(split(/\s+/, $status{tags})))) + . "" + if (length($status{tags})); my @merged= split(/ /,$status{mergedwith}); my $mseparator= ";\nmerged with "; @@ -323,7 +325,7 @@ sub getbugstatus { my $archdir = sprintf "%02d", $bugnum % 100; open(S,"$gSpoolDir/archive/$archdir/$bugnum.status" ) or return (); } - my @lines = qw(originator date subject msgid package keywords done + my @lines = qw(originator date subject msgid package tags done forwarded mergedwith severity); while() { chomp; -- 2.39.2