diff options
-rwxr-xr-x | ikiwiki | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; } |