fix os_mkdir
This commit is contained in:
parent
76a6739b93
commit
505e5e90b2
5
boot.php
5
boot.php
@ -1239,8 +1239,9 @@ function absurl($path) {
|
||||
|
||||
function os_mkdir($path, $mode = 0777, $recursive = false) {
|
||||
$oldumask = @umask(0);
|
||||
@mkdir($path, $mode, $recursive);
|
||||
@umask($oldumask);
|
||||
$result = @mkdir($path, $mode, $recursive);
|
||||
@umask($oldumask);
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -95,6 +95,7 @@ class RedBrowser extends DAV\Browser\Plugin {
|
||||
'{DAV:}getlastmodified',
|
||||
), 1);
|
||||
|
||||
|
||||
$parent = $this->server->tree->getNodeForPath($path);
|
||||
|
||||
$parentpath = array();
|
||||
@ -167,6 +168,7 @@ class RedBrowser extends DAV\Browser\Plugin {
|
||||
|
||||
$fullPath = DAV\URLUtil::encodePath('/' . trim($this->server->getBaseUri() . ($path ? $path . '/' : '') . $name, '/'));
|
||||
|
||||
|
||||
$displayName = isset($file[200]['{DAV:}displayname']) ? $file[200]['{DAV:}displayname'] : $name;
|
||||
|
||||
$displayName = $this->escapeHTML($displayName);
|
||||
|
@ -49,6 +49,7 @@ class RedDirectory extends DAV\Node implements DAV\ICollection, DAV\IQuota {
|
||||
* @param RedBasicAuth &$auth_plugin
|
||||
*/
|
||||
public function __construct($ext_path, &$auth_plugin) {
|
||||
// $ext_path = urldecode($ext_path);
|
||||
//logger('directory ' . $ext_path, LOGGER_DATA);
|
||||
$this->ext_path = $ext_path;
|
||||
// remove "/cloud" from the beginning of the path
|
||||
|
@ -706,7 +706,7 @@ function attach_mkdir($channel, $observer_hash, $arr = null) {
|
||||
);
|
||||
}
|
||||
else {
|
||||
logger('attach_mkdir: ' . mkdir . ' ' . $path . 'failed.');
|
||||
logger('attach_mkdir: ' . mkdir . ' ' . $path . ' failed.');
|
||||
$ret['message'] = t('mkdir failed.');
|
||||
}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
2015-03-28.985
|
||||
2015-03-29.986
|
||||
|
Reference in New Issue
Block a user