aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-12 18:10:43 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-12 18:10:43 +0000
commit1c51f7de502416af7119f7e041a43fa36cc5b189 (patch)
treec9f7dbd3ddf5affe1dd27c77e1917ed5ee35b005 /ikiwiki
parent0563a600e9cd8c882208047edc3a215d20a5ca6e (diff)
downloadikiwiki-1c51f7de502416af7119f7e041a43fa36cc5b189.tar
ikiwiki-1c51f7de502416af7119f7e041a43fa36cc5b189.tar.gz
force session flush with safe umask
Diffstat (limited to 'ikiwiki')
-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;
}