fix: 修复文件预览重定向与扩展名解析
This commit is contained in:
@@ -7678,7 +7678,7 @@ func (a *adapter) TenantFileGet(id t.TenantID, fid string) (*t.FileDef, error) {
|
||||
file, err := a.FileGet(fid)
|
||||
return stampTenantFile(id, file), err
|
||||
}
|
||||
fileID := t.ParseUid(fid)
|
||||
fileID := parseFileUID(fid)
|
||||
if fileID.IsZero() {
|
||||
return nil, t.ErrMalformed
|
||||
}
|
||||
@@ -7859,7 +7859,7 @@ func (a *adapter) TenantFileUserHasAccess(id t.TenantID, fid string, uid t.Uid)
|
||||
if a.tenantScopedDB {
|
||||
return a.FileUserHasAccess(fid, uid)
|
||||
}
|
||||
fileID := t.ParseUid(fid)
|
||||
fileID := parseFileUID(fid)
|
||||
if fileID.IsZero() {
|
||||
return false, t.ErrMalformed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user