Fix symlinks were opened read-only in Collabora

This commit is contained in:
nathangray 2021-05-14 09:43:30 -06:00
parent 8e01929a43
commit 08800b83c9

View File

@ -315,7 +315,8 @@ class Base
{
$old_url = $url;
$_url = self::symlinkCache_resolve(Vfs::parse_url($url,PHP_URL_PATH));
$url = @readlink($url) ?: ($_url != $parts['path'] ? str_replace($parts['path'],$_url,$url) : null) ?:$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;
}
if ($replace_user_pass_host && !$is_link)