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
git-svn-id: svn://10.0.0.236/trunk@180802 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
31d586d93c
commit
3dfa6a8d09
@ -64,7 +64,7 @@ sub new {
|
|||||||
$self->charset(Param('utf8') ? 'UTF-8' : '');
|
$self->charset(Param('utf8') ? 'UTF-8' : '');
|
||||||
|
|
||||||
# Redirect to SSL if required
|
# 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'));
|
$self->require_https(Param('sslbase'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user