diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-08-28 16:09:58 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-08-28 16:09:58 -0400 |
commit | 2a29641097d6f42b94953a4328a29898662625c8 (patch) | |
tree | fa8c6239b33f2801ba1489736ee4146432ab652f /IkiWiki | |
parent | 9b21a540dd54da0da6ec85c5a427cefbd1a0116b (diff) | |
download | ikiwiki-2a29641097d6f42b94953a4328a29898662625c8.tar ikiwiki-2a29641097d6f42b94953a4328a29898662625c8.tar.gz |
Set cookies HttpOnly.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/CGI.pm | 5 |
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)); } } #}}} |