From af7c9b0dbf573d0c04e433f2ad986aed0684748e Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 22 Sep 2005 23:53:15 +0000 Subject: Bug 308876: Iff ssl is "always", whining (and other non-interactive scripts?) get a 302-moved error - Patch by A. Karl Kornel r=joel a=justdave --- Bugzilla/CGI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); } -- cgit v1.2.3-24-g4f1b