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 | |
parent | 9b21a540dd54da0da6ec85c5a427cefbd1a0116b (diff) |
Set cookies HttpOnly.
-rw-r--r-- | IkiWiki/CGI.pm | 5 | ||||
-rw-r--r-- | debian/changelog | 6 |
2 files changed, 9 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)); } } #}}} diff --git a/debian/changelog b/debian/changelog index bd8d8d743..21fdfea9d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +ikiwiki (2.62.2) UNRELEASED; urgency=low + + * Set cookies HttpOnly. + + -- Joey Hess <joeyh@debian.org> Thu, 28 Aug 2008 16:08:18 -0400 + ikiwiki (2.62.1) unstable; urgency=low * filecheck: Fixed two bits broken in move from attachment. |