X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/d3cad5d2cab108a06b043137a42d18c083975e5a..ef3d080a9ace3f8e0c985b737ededf6d6f1285ad:/IkiWiki/CGI.pm diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index cf72bfdb9..6f5d8aee6 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -14,9 +14,10 @@ sub printheader ($) { #{{{ if ($config{sslcookie}) { print $session->header(-charset => 'utf-8', - -cookie => $session->cookie(-secure => 1)); + -cookie => $session->cookie(-httponly => 1, -secure => 1)); } 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;