From 2e66d3b093d73d5aeabae37ff8c4501e65ab4ce5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 14 Oct 2008 14:57:35 +0000 Subject: [PATCH] "use a default for the host in resolve_url, as we otherwise get an invalid url (scheme:///path/to/something)! " --- phpgwapi/inc/class.vfs_stream_wrapper.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpgwapi/inc/class.vfs_stream_wrapper.inc.php b/phpgwapi/inc/class.vfs_stream_wrapper.inc.php index 8c5d3af31e..9e16d327f7 100644 --- a/phpgwapi/inc/class.vfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.vfs_stream_wrapper.inc.php @@ -127,6 +127,7 @@ class vfs_stream_wrapper implements iface_stream_wrapper ); } $parts = array_merge(parse_url($path),$defaults); + if (!$parts['host']) $parts['host'] = 'default'; // otherwise we get an invalid url (scheme:///path/to/something)! if (!empty($parts['scheme']) && $parts['scheme'] != self::SCHEME) {