Skip to content
Snippets Groups Projects
Commit b3222a5c authored by andi's avatar andi
Browse files

workaround for php umask bug (fixes #97)

darcs-hash:20050129113621-9977f-a3439b9f7a590d3c64522046e79001f0ba9b199b.gz
parent e647351c
No related branches found
Tags develsnap_2007-06-01
No related merge requests found
......@@ -162,4 +162,7 @@
}
if(substr($ACT,0,6) != 'export') html_footer();
//restore old umask
umask($conf['oldumask']);
?>
......@@ -38,6 +38,9 @@
$conf['usegzip'] = 0;
}
//remember original umask
$conf['oldumask'] = umask();
/**
* remove magic quotes recursivly
*
......
......@@ -4,7 +4,6 @@ require_once("conf/dokuwiki.php");
require_once("inc/common.php");
require_once("lang/en/lang.php");
require_once("lang/".$conf['lang']."/lang.php");
setCorrectLocale();
require_once("inc/html.php");
require_once("inc/search.php");
require_once("inc/format.php");
......@@ -54,6 +53,9 @@ html_head();
</body>
</html>
<?
//restore old umask
umask($conf['oldumask']);
/**********************************************/
function media_upload($NS){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment