]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/CGI.pm
IkiWiki::Render: run scan hooks for internal pages, as well as preprocessing
[ikiwiki.git] / IkiWiki / CGI.pm
index 30d108a81ca7be4bac8081040dbb1a5608f1436c..6a04decb617571c9a8f6ea6e206663f177bd24de 100644 (file)
@@ -12,7 +12,7 @@ use Encode;
 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));
        }
@@ -79,7 +79,7 @@ sub cgitemplate ($$$;@) {
                title => $title,
                wikiname => $config{wikiname},
                content => $content,
-               baseurl => urlabs(urlto(undef), $topurl),
+               baseurl => urlabs(baseurl(), $topurl),
                html5 => $config{html5},
                %params,
        );