fix os_mkdir

This commit is contained in:
friendica 2015-03-29 16:05:08 -07:00
parent 76a6739b93
commit 505e5e90b2
5 changed files with 8 additions and 4 deletions

View File

@ -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;
}
/**

View File

@ -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);

View File

@ -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

View File

@ -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.');
}
}

View File

@ -1 +1 @@
2015-03-28.985
2015-03-29.986