From: joey Date: Sun, 12 Mar 2006 18:10:43 +0000 (+0000) Subject: force session flush with safe umask X-Git-Tag: 1.0~409 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1c51f7de502416af7119f7e041a43fa36cc5b189;p=ikiwiki.git force session flush with safe umask --- 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; }