summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-09-23 01:53:15 +0200
committerlpsolit%gmail.com <>2005-09-23 01:53:15 +0200
commitaf7c9b0dbf573d0c04e433f2ad986aed0684748e (patch)
tree1c5f5a5d2c288c6f22ad6154eb456be93f68e458
parentf4d0ddc58cc872a275053f7e1f8849acd864241a (diff)
downloadbugzilla-af7c9b0dbf573d0c04e433f2ad986aed0684748e.tar.gz
bugzilla-af7c9b0dbf573d0c04e433f2ad986aed0684748e.tar.xz
Bug 308876: Iff ssl is "always", whining (and other non-interactive scripts?) get a 302-moved error - Patch by A. Karl Kornel <karl@kornel.name> r=joel a=justdave
-rw-r--r--Bugzilla/CGI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index f516dd5c6..8db65eeda 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -64,7 +64,7 @@ sub new {
$self->charset(Param('utf8') ? 'UTF-8' : '');
# Redirect to SSL if required
- if (Param('sslbase') ne '' and Param('ssl') eq 'always') {
+ if (Param('sslbase') ne '' and Param('ssl') eq 'always' and i_am_cgi()) {
$self->require_https(Param('sslbase'));
}