Commit c0ab2bba authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 329638: https login page switches to http on submit if ssl_redirect = false…

Bug 329638: https login page switches to http on submit if ssl_redirect = false - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent cf0742d1
...@@ -277,7 +277,16 @@ sub correct_urlbase { ...@@ -277,7 +277,16 @@ sub correct_urlbase {
my $urlbase = Bugzilla->params->{'urlbase'}; my $urlbase = Bugzilla->params->{'urlbase'};
my $sslbase = Bugzilla->params->{'sslbase'}; my $sslbase = Bugzilla->params->{'sslbase'};
return ($ssl && $sslbase) ? $sslbase : $urlbase; if (!$sslbase) {
return $urlbase;
}
elsif ($ssl) {
return $sslbase;
}
else {
# Return what the user currently uses.
return (uc($ENV{HTTPS} || '') eq 'ON') ? $sslbase : $urlbase;
}
} }
sub use_attachbase { sub use_attachbase {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment