mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
"mkdir was loosing the query-part when recursivly creating directories"
This commit is contained in:
parent
c38cb2da76
commit
22a6325531
@ -589,8 +589,9 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
$parent = self::url_stat($parent_path=dirname($path),STREAM_URL_STAT_QUIET);
|
||||
$parent_path = dirname($path);
|
||||
if (($query = parse_url($url,PHP_URL_QUERY))) $parent_path .= '?'.$query;
|
||||
$parent = self::url_stat($parent_path,STREAM_URL_STAT_QUIET);
|
||||
|
||||
// check if we should also create all non-existing path components and our parent does not exist,
|
||||
// if yes call ourself recursive with the parent directory
|
||||
@ -600,7 +601,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
||||
{
|
||||
return false;
|
||||
}
|
||||
$parent = self::url_stat($parent_path=dirname($path),0);
|
||||
$parent = self::url_stat($parent_path,0);
|
||||
}
|
||||
if (!$parent || !egw_vfs::check_access($parent_path,egw_vfs::WRITABLE,$parent))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user