summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xikiwiki6
1 files changed, 6 insertions, 0 deletions
diff --git a/ikiwiki b/ikiwiki
index cb43f6b0b..44e2197e6 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -963,6 +963,12 @@ sub cgi () { #{{{
# Everything below this point needs the user to be signed in.
if ((! $anonok && ! defined $session->param("name")) || $do eq 'signin') {
cgi_signin($q, $session);
+
+ # Force session flush with safe umask.
+ my $oldmask=umask(077);
+ $session->flush;
+ umask($oldmask);
+
return;
}