mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Avoid path-cleaning policy resources for a better compliance with S3 (#2823)
This commit is contained in:
parent
83e6e1060e
commit
b5a6dd1395
@ -23,7 +23,6 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"path"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@ -224,7 +223,7 @@ func resourcePrefix(resource string) string {
|
|||||||
if strings.HasSuffix(resource, "*") {
|
if strings.HasSuffix(resource, "*") {
|
||||||
resource = strings.TrimSuffix(resource, "*")
|
resource = strings.TrimSuffix(resource, "*")
|
||||||
}
|
}
|
||||||
return path.Clean(resource)
|
return resource
|
||||||
}
|
}
|
||||||
|
|
||||||
// checkBucketPolicyResources validates Resources in unmarshalled bucket policy structure.
|
// checkBucketPolicyResources validates Resources in unmarshalled bucket policy structure.
|
||||||
|
Loading…
Reference in New Issue
Block a user