sub printheader ($) {
my $session=shift;
- if ($ENV{HTTPS} || $config{sslcookie}) {
+ if (($ENV{HTTPS} && lc $ENV{HTTPS} ne "off") || $config{sslcookie}) {
print $session->header(-charset => 'utf-8',
-cookie => $session->cookie(-httponly => 1, -secure => 1));
}
title => $title,
wikiname => $config{wikiname},
content => $content,
- baseurl => urlabs(urlto(""), $topurl),
+ baseurl => urlabs(baseurl(), $topurl),
html5 => $config{html5},
%params,
);