projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
172f41f
)
Always set secure cookies if logging in via HTTPS
author
Simon McVittie
<smcv@debian.org>
Mon, 29 Nov 2010 19:30:44 +0000
(19:30 +0000)
committer
Simon McVittie
<smcv@debian.org>
Mon, 29 Nov 2010 19:30:44 +0000
(19:30 +0000)
IkiWiki/CGI.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/CGI.pm
b/IkiWiki/CGI.pm
index f2a32a9581077553d5b542fde40f428c15a5e41a..14193c33ae8a82fd2f69ad38ae176a33647cddfa 100644
(file)
--- 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));
}