From 740b992cbdb4e3083aa6bb4dbd2d7f370cd1245d Mon Sep 17 00:00:00 2001 From: don <> Date: Wed, 19 Oct 2005 02:49:12 -0800 Subject: [PATCH] [project @ 2005-10-19 03:49:12 by don] * Link to merged bugs in the bugreport.cgi output * Make attachments use the inline content disposition so they are displayed in the browser when possible * Fix up html so it is HTML 4.01 compliant (closes: #322763) --- cgi/bugreport.cgi | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index c8ded557..9dd10e0c 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -114,7 +114,7 @@ sub display_entity ($$$$\$\@) { my $qf = $filename; $qf =~ s/"/\\"/g; $qf =~ s[.*/][]; - print qq{Content-Disposition: attachment; filename="$qf"\n}; + print qq{Content-Disposition: inline; filename="$qf"\n}; } print "\n"; my $decoder = new MIME::Decoder($head->mime_encoding); @@ -399,8 +399,10 @@ sub handle_record{ $output =~ s,((?:ftp|http|https)://[\S~-]+?/?)([\)\'\:\.\,]?(?:\s|\.<|$)),$1$2,go; # Add links to the cloned bugs $output =~ s{(Bug )(\d+)( cloned as bugs? )(\d+)(?:\-(\d+)|)}{$1.bug_links($2).$3.bug_links($4,$5)}eo; + # Add links to merged bugs + $output =~ s{(?<=Merged )([\d\s]+)(?=\.)}{join(' ',map {bug_links($_)} (split /\s+/, $1))}eo; $output .= 'Full text and rfc822 format available.'; + bugurl($ref, 'msg='.($msg_number+1), 'mbox') . '">rfc822 format available.'; $output = "
Message received at |. - htmlsanit("$received\@$hostname") . q| (full text'.q|, mbox)'.":
\n"; + $output .= qq|Message received at |. + htmlsanit("$received\@$hostname") . q| (full text'.q|, mbox)'.":
\n"; $output .= handle_email_message($record->{text}, ref => $bug_number, msg_number => $msg_number, -- 2.39.5