aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-08-28 16:09:58 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-08-28 16:09:58 -0400
commit2a29641097d6f42b94953a4328a29898662625c8 (patch)
treefa8c6239b33f2801ba1489736ee4146432ab652f /IkiWiki
parent9b21a540dd54da0da6ec85c5a427cefbd1a0116b (diff)
downloadikiwiki-2a29641097d6f42b94953a4328a29898662625c8.tar
ikiwiki-2a29641097d6f42b94953a4328a29898662625c8.tar.gz
Set cookies HttpOnly.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index a05043478..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));
}
} #}}}