Skip to content

Commit

Permalink
workaround for php umask bug (fixes #97)
Browse files Browse the repository at this point in the history
darcs-hash:20050129113621-9977f-a3439b9f7a590d3c64522046e79001f0ba9b199b.gz
  • Loading branch information
splitbrain committed Jan 29, 2005
1 parent e647351 commit b3222a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doku.php
Expand Up @@ -162,4 +162,7 @@
}
if(substr($ACT,0,6) != 'export') html_footer();


//restore old umask
umask($conf['oldumask']);
?>
3 changes: 3 additions & 0 deletions inc/common.php
Expand Up @@ -38,6 +38,9 @@
$conf['usegzip'] = 0;
}

//remember original umask
$conf['oldumask'] = umask();

/**
* remove magic quotes recursivly
*
Expand Down
4 changes: 3 additions & 1 deletion media.php
Expand Up @@ -4,7 +4,6 @@
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");
Expand Down Expand Up @@ -54,6 +53,9 @@
</body>
</html>
<?
//restore old umask
umask($conf['oldumask']);

/**********************************************/

function media_upload($NS){
Expand Down

0 comments on commit b3222a5

Please sign in to comment.