summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-10-24 07:22:45 +0200
committermkanat%bugzilla.org <>2009-10-24 07:22:45 +0200
commitf9cd15c79202a50d7c0a3f9aa8de45c2c23cdb49 (patch)
tree8a45972d5cc074cd689c1a6215ebc5cbfa72ed2c /Bugzilla.pm
parenta2dd3b00284fd4724d3408274cb1156c7a77d187 (diff)
downloadbugzilla-f9cd15c79202a50d7c0a3f9aa8de45c2c23cdb49.tar.gz
bugzilla-f9cd15c79202a50d7c0a3f9aa8de45c2c23cdb49.tar.xz
Bug 523495: Re-work attachment.cgi and the general attachment_base-checking code to prevent an infinite redirect loop when ssl_redirect is on and Bugzilla has an attachment_base set.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index 62b1af659..67ec611a9 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -113,7 +113,10 @@ sub init_page {
};
}
- do_ssl_redirect_if_required();
+ # Because of attachment_base, attachment.cgi handles this itself.
+ if (basename($0) ne 'attachment.cgi') {
+ do_ssl_redirect_if_required();
+ }
# If Bugzilla is shut down, do not allow anything to run, just display a
# message to the user about the downtime and log out. Scripts listed in