Avoid path-cleaning policy resources for a better compliance with S3 (#2823)

master
Anis Elleuch 8 years ago committed by Harshavardhana
parent 83e6e1060e
commit b5a6dd1395
  1. 3
      cmd/bucket-policy-parser.go

@ -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…
Cancel
Save