Fix hidden upload share link would not work for logged in user

This commit is contained in:
nathangray 2021-03-17 11:17:06 -06:00
parent b1a4006b02
commit c21af32c1b

View File

@ -68,7 +68,7 @@ class HiddenUploadSharing extends Sharing
parent::setup_share(true, $share);
// upload dir needs the full url incl. share owner, but not readonly
$upload_dir = Vfs::concat(str_replace('?ro=1', '', $share['resolve_url']), self::HIDDEN_UPLOAD_DIR);
$upload_dir = Vfs::concat(str_replace('?ro=1', '',$share['resolve_url'] ?: $resolve_url), self::HIDDEN_UPLOAD_DIR);
$upload_mount = Vfs::concat($share['share_root'], self::HIDDEN_UPLOAD_DIR);
// Mounting upload dir, has original share owner access (write)