"use a default for the host in resolve_url, as we otherwise get an invalid url (scheme:///path/to/something)!

"
This commit is contained in:
Ralf Becker 2008-10-14 14:57:35 +00:00
parent cd781c228c
commit 2e66d3b093

View File

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