From 56146e0d4b3dcb7513c647f22d147496aed617b7 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 4 Mar 2006 01:14:33 +0100 Subject: make umask an empty string for system default darcs-hash:20060304001433-7ad00-51931e5a0eccec14b63ef215b0fa535bb2484a29.gz --- inc/init.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'inc/init.php') diff --git a/inc/init.php b/inc/init.php index fc7e5abec..1557070e5 100644 --- a/inc/init.php +++ b/inc/init.php @@ -65,7 +65,7 @@ if (!empty($_POST)) remove_magic_quotes($_POST); if (!empty($_COOKIE)) remove_magic_quotes($_COOKIE); if (!empty($_REQUEST)) remove_magic_quotes($_REQUEST); - if (!empty($_SESSION)) remove_magic_quotes($_SESSION); +# if (!empty($_SESSION)) remove_magic_quotes($_SESSION); #FIXME needed ? @ini_set('magic_quotes_gpc', 0); define('MAGIC_QUOTES_STRIPPED',1); } @@ -85,13 +85,13 @@ } // Set defaults for fmode, dmode and umask. - if(!isset($conf['fmode'])) { + if(!isset($conf['fmode']) || $conf['fmode'] === '') { $conf['fmode'] = 0666; } - if(!isset($conf['dmode'])) { + if(!isset($conf['dmode']) || $conf['dmode'] === '') { $conf['dmode'] = 0777; } - if(!isset($conf['umask'])) { + if(!isset($conf['umask']) || $conf['umask'] === '') { $conf['umask'] = umask(); } -- cgit v1.2.3