mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
"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:
parent
cd781c228c
commit
2e66d3b093
@ -127,6 +127,7 @@ class vfs_stream_wrapper implements iface_stream_wrapper
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
$parts = array_merge(parse_url($path),$defaults);
|
$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)
|
if (!empty($parts['scheme']) && $parts['scheme'] != self::SCHEME)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user