version 1.144, 2018/12/27 18:14:25
|
version 1.145, 2018/12/27 20:10:31
|
Line 311 sub handler {
|
Line 311 sub handler {
|
$protocol = 'http' if ($protocol ne 'https'); |
$protocol = 'http' if ($protocol ne 'https'); |
my $link = $r->uri; |
my $link = $r->uri; |
if (($protocol eq 'https') && ($external =~ m{^http://})) { |
if (($protocol eq 'https') && ($external =~ m{^http://})) { |
$link .= '?usehttp=1'; |
unless (&Apache::lonnet::uses_sts()) { |
$protocol = 'http'; |
$link .= '?usehttp=1'; |
|
$protocol = 'http'; |
|
} |
} |
} |
$link = $protocol.'://'.$hostname.$link; |
$link = $protocol.'://'.$hostname.$link; |
$r->print('<div class="LC_left_float">' |
$r->print('<div class="LC_left_float">' |