vendor reva

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2024-02-06 15:48:22 +01:00
parent b802a1848f
commit 41b33d53f2
3 changed files with 3 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ import (
// ContentDispositionAttachment builds a ContentDisposition Attachment header with various filename encodings
func ContentDispositionAttachment(filename string) string {
return "attachment; filename*=UTF-8''" + filename + "; filename=\"" + filename + "\""
return "attachment; filename*=UTF-8''\"" + filename + "\"; filename=\"" + filename + "\""
}
// RFC1123Z formats a CS3 Timestamp to be used in HTTP headers like Last-Modified

View File

@@ -579,6 +579,7 @@ func (p *Handler) getResourceInfos(ctx context.Context, w http.ResponseWriter, r
// adjust path
info.Path = filepath.Join(spacePath, spaceRef.Path)
info.Name = filepath.Base(info.Path)
spaceMap[info] = spaceData{Ref: spaceRef, SpaceType: space.SpaceType}

2
vendor/modules.txt vendored
View File

@@ -362,7 +362,7 @@ github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1
github.com/cs3org/go-cs3apis/cs3/storage/registry/v1beta1
github.com/cs3org/go-cs3apis/cs3/tx/v1beta1
github.com/cs3org/go-cs3apis/cs3/types/v1beta1
# github.com/cs3org/reva/v2 v2.18.1-0.20240205065033-2c21ada2ae52
# github.com/cs3org/reva/v2 v2.18.1-0.20240206122233-bf89f7aaedd1
## explicit; go 1.21
github.com/cs3org/reva/v2/cmd/revad/internal/grace
github.com/cs3org/reva/v2/cmd/revad/runtime