workaround for php umask bug (fixes #97)
darcs-hash:20050129113621-9977f-a3439b9f7a590d3c64522046e79001f0ba9b199b.gz
This commit is contained in:
parent
e647351c39
commit
b3222a5c05
3
doku.php
3
doku.php
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue