diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-03-04 01:14:33 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-03-04 01:14:33 +0100 |
commit | 56146e0d4b3dcb7513c647f22d147496aed617b7 (patch) | |
tree | 84278ab153879e705a9da1b3fe191cf6c4f51916 | |
parent | 6733ffadac7a450ceb29a754f0a669a6d86ef1eb (diff) | |
download | rpg-56146e0d4b3dcb7513c647f22d147496aed617b7.tar.gz rpg-56146e0d4b3dcb7513c647f22d147496aed617b7.tar.bz2 |
make umask an empty string for system default
darcs-hash:20060304001433-7ad00-51931e5a0eccec14b63ef215b0fa535bb2484a29.gz
-rw-r--r-- | conf/dokuwiki.php | 2 | ||||
-rw-r--r-- | inc/init.php | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/conf/dokuwiki.php b/conf/dokuwiki.php index 7bcd8bcbc..227c08043 100644 --- a/conf/dokuwiki.php +++ b/conf/dokuwiki.php @@ -8,7 +8,7 @@ /* Datastorage and Permissions */ -$conf['umask'] = 0002; //set the global umask +$conf['umask'] = ''; //set the global umask - empty for system default $conf['fmode'] = 0666; //set file creation mode $conf['dmode'] = 0777; //set direction creation mode 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(); } |