diff options
author | Simon McVittie <smcv@debian.org> | 2010-11-29 19:30:44 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-11-29 19:30:44 +0000 |
commit | f33c2af2c467c30ce009c8578988c8fcddf1f32c (patch) | |
tree | 3adcc02e193e37576d949e8b63240ba52eee9832 | |
parent | 172f41f6de288814fbd013f3465e658c562b10b1 (diff) |
Always set secure cookies if logging in via HTTPS
-rw-r--r-- | IkiWiki/CGI.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index f2a32a958..14193c33a 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -12,7 +12,7 @@ use Encode; sub printheader ($) { my $session=shift; - if ($config{sslcookie}) { + if ($ENV{HTTPS} || $config{sslcookie}) { print $session->header(-charset => 'utf-8', -cookie => $session->cookie(-httponly => 1, -secure => 1)); } |