aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-11-29 19:30:44 +0000
committerSimon McVittie <smcv@debian.org>2010-11-29 19:30:44 +0000
commitf33c2af2c467c30ce009c8578988c8fcddf1f32c (patch)
tree3adcc02e193e37576d949e8b63240ba52eee9832 /IkiWiki
parent172f41f6de288814fbd013f3465e658c562b10b1 (diff)
downloadikiwiki-f33c2af2c467c30ce009c8578988c8fcddf1f32c.tar
ikiwiki-f33c2af2c467c30ce009c8578988c8fcddf1f32c.tar.gz
Always set secure cookies if logging in via HTTPS
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm2
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));
}