Stop stripping scheme/host/credentials from cached symlink targets

Fixes symlinks to mounted hosts (samba, webdav) did not work
This commit is contained in:
nathan 2024-07-03 16:02:20 -06:00
parent 615db7683b
commit 63b9216e3c

View File

@ -428,16 +428,6 @@ class Base
// nothing to do
return;
}
if($target[0] != '/')
{
$query = Vfs::parse_url($target, PHP_URL_QUERY);
$target = Vfs::parse_url($target, PHP_URL_PATH);
if($query)
{
// Don't cache without query, some StreamWrappers need those parameters
$target = "?$query";
}
}
self::$symlink_cache[$path] = $target;