summaryrefslogtreecommitdiffstats
path: root/mod_perl.pl
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-11-15 08:28:13 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-11-15 08:28:13 +0100
commit41c2692f2c83f2e96f396fb9055c8f321f363a6d (patch)
treeaaa453df0b9210877467310f07d24240c6252a34 /mod_perl.pl
parent3a27fb2faf10cdf4fb570ab265cee2247a9d3715 (diff)
downloadbugzilla-41c2692f2c83f2e96f396fb9055c8f321f363a6d.tar.gz
bugzilla-41c2692f2c83f2e96f396fb9055c8f321f363a6d.tar.xz
Bug 599552: Clean up mod_perl.pl, and make it use the same CGI.pm compile
options as mod_cgi does. r=glob, a=mkanat
Diffstat (limited to 'mod_perl.pl')
-rw-r--r--mod_perl.pl16
1 files changed, 7 insertions, 9 deletions
diff --git a/mod_perl.pl b/mod_perl.pl
index 32fe82ccf..15dec263a 100644
--- a/mod_perl.pl
+++ b/mod_perl.pl
@@ -16,7 +16,6 @@
# Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
package Bugzilla::ModPerl;
-
use strict;
# If you have an Apache2::Status handler in your Apache configuration,
@@ -30,22 +29,21 @@ use strict;
use Apache2::ServerUtil;
use ModPerl::RegistryLoader ();
-use CGI ();
-CGI->compile(qw(:cgi -no_xhtml -oldstyle_urls :private_tempfiles
- :unique_headers SERVER_PUSH :push));
use File::Basename ();
-use Template::Config ();
-Template::Config->preload();
+# This loads most of our modules.
use Bugzilla ();
-use Bugzilla::Constants ();
+# Loading Bugzilla.pm doesn't load this, though, and we want it preloaded.
+use Bugzilla::BugMail ();
use Bugzilla::CGI ();
+use Bugzilla::Constants ();
use Bugzilla::Extension ();
use Bugzilla::Install::Requirements ();
-use Bugzilla::Mailer ();
-use Bugzilla::Template ();
use Bugzilla::Util ();
+# Pre-compile the CGI.pm methods that we're going to use.
+Bugzilla::CGI->compile(qw(:cgi :push));
+
my ($sizelimit, $maxrequests) = ('', '');
if (Bugzilla::Constants::ON_WINDOWS) {
$maxrequests = "MaxRequestsPerChild 25";