]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/CGI.pm
response
[ikiwiki.git] / IkiWiki / CGI.pm
index cf72bfdb9f7205d73dea69c5612a0941fbe5c839..6f5d8aee65d2a8b20333be29fba60df15786f569 100644 (file)
@@ -14,9 +14,10 @@ sub printheader ($) { #{{{
        
        if ($config{sslcookie}) {
                print $session->header(-charset => 'utf-8',
        
        if ($config{sslcookie}) {
                print $session->header(-charset => 'utf-8',
-                       -cookie => $session->cookie(-secure => 1));
+                       -cookie => $session->cookie(-httponly => 1, -secure => 1));
        } else {
        } else {
-               print $session->header(-charset => 'utf-8');
+               print $session->header(-charset => 'utf-8',
+                       -cookie => $session->cookie(-httponly => 1));
        }
 } #}}}
 
        }
 } #}}}
 
@@ -775,7 +776,7 @@ sub cgi (;$$) { #{{{
        }
 } #}}}
 
        }
 } #}}}
 
-# Does not need tobe called directly; all errors will go through here.
+# Does not need to be called directly; all errors will go through here.
 sub cgierror ($) { #{{{
        my $message=shift;
 
 sub cgierror ($) { #{{{
        my $message=shift;