From 22a632553145c765014402d3fd0f5a2ab57e7518 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 2 Oct 2008 11:01:28 +0000 Subject: [PATCH] "mkdir was loosing the query-part when recursivly creating directories" --- phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php index 47a95f3a54..3c14d5784f 100644 --- a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php @@ -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)) {