Api: Fix bug where StreamWrappers that mapped onto other StreamWrappers would be parsed earlier than we want, leading to the first StreamWrapper not getting used.

This commit is contained in:
nathangray 2021-07-01 10:03:54 -06:00 committed by nathan
parent 96d6b22db7
commit 4606a29408

View File

@ -314,7 +314,7 @@ class Base
if($is_link && $do_symlink)
{
$old_url = $url;
$_url = self::symlinkCache_resolve(Vfs::parse_url($url,PHP_URL_PATH));
$_url = self::symlinkCache_resolve($url);
$url = @readlink($url) ?: ($_url != $parts['path'] ?
str_replace([$parts['path'],Vfs::parse_url($old_url,PHP_URL_SCHEME)],[$_url,Vfs::parse_url(Vfs::resolve_url($_url),PHP_URL_SCHEME)],$url) : null) ?:$url;
$is_link = $old_url == $url;