зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
512e67f32c
Коммит
8e280f1bb8
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче