aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2011-03-13 22:04:32 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2011-03-13 22:04:32 -0700
commitebc758fb5c94f7441827b8f8201ff3170addcbc7 (patch)
treedaf370445b5e13adfd24402fc1752a6fed51ae58 /Bugzilla.pm
parent8782cbb1c99e52d25a5157b0d3b794459f2b631a (diff)
downloadbugs-ebc758fb5c94f7441827b8f8201ff3170addcbc7.tar
bugs-ebc758fb5c94f7441827b8f8201ff3170addcbc7.tar.gz
bugs-ebc758fb5c94f7441827b8f8201ff3170addcbc7.tar.bz2
bugs-ebc758fb5c94f7441827b8f8201ff3170addcbc7.tar.xz
bugs-ebc758fb5c94f7441827b8f8201ff3170addcbc7.zip
Bug 637977: Re-setup CGI.pm global variables on every request under mod_perl,
which prevents CGI.pm from generating URLs with semicolons in them instead of ampersands. r=glob, a=mkanat
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index 2c07ea722..9d7199ff6 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -647,6 +647,11 @@ sub _cleanup {
$dbh->disconnect;
}
undef $_request_cache;
+
+ # These are both set by CGI.pm but need to be undone so that
+ # Apache can actually shut down its children if it needs to.
+ $SIG{TERM} = 'DEFAULT' if $SIG{TERM} eq 'IGNORE';
+ $SIG{PIPE} = 'DEFAULT' if $SIG{PIPE} eq 'IGNORE';
}
sub END {