From: lpsolit%gmail.com <> Date: Thu, 22 Sep 2005 23:53:15 +0000 (+0000) Subject: Bug 308876: Iff ssl is "always", whining (and other non-interactive scripts?) get... X-Git-Tag: bugzilla-2.21.1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af7c9b0dbf573d0c04e433f2ad986aed0684748e;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index f516dd5c61..8db65eedad 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')); }