From a17184b036adc336f6810444163b1c7d9aa35ee1 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sun, 26 Aug 2018 02:13:32 -0400 Subject: remove old IIS thing --- Bugzilla.pm | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Bugzilla.pm b/Bugzilla.pm index 596824b6d..eddc186ee 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -114,20 +114,6 @@ sub init_page { # 001compile.t test). return if $^C; - # IIS prints out warnings to the webpage, so ignore them, or log them - # to a file if the file exists. - if ($ENV{SERVER_SOFTWARE} && $ENV{SERVER_SOFTWARE} =~ /microsoft-iis/i) { - $SIG{__WARN__} = sub { - my ($msg) = @_; - my $datadir = bz_locations()->{'datadir'}; - if (-w "$datadir/errorlog") { - my $warning_log = new IO::File(">>$datadir/errorlog"); - print $warning_log $msg; - $warning_log->close(); - } - }; - } - my $script = basename($0); # Because of attachment_base, attachment.cgi handles this itself. -- cgit v1.2.3-24-g4f1b From a3c045c23388151e78ad5990c9cc88ea3dcff2ce Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sun, 26 Aug 2018 02:25:54 -0400 Subject: do not call finish if there was an error --- Bugzilla/Quantum/CGI.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bugzilla/Quantum/CGI.pm b/Bugzilla/Quantum/CGI.pm index 0a74f1ee5..7548c0809 100644 --- a/Bugzilla/Quantum/CGI.pm +++ b/Bugzilla/Quantum/CGI.pm @@ -66,8 +66,9 @@ sub load_one { die $_ unless ref $_ eq 'ARRAY' && $_->[0] eq "EXIT\n"; } finally { + my $error = shift; untie *STDOUT; - $c->finish; + $c->finish unless $error; Bugzilla->cleanup; CGI::initialize_globals(); }; -- cgit v1.2.3-24-g4f1b