mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
fix: allow trailing slash in AWS S3 POST policies (#21612)
This commit is contained in:
@@ -75,7 +75,7 @@ func parseCredentialHeader(credElement string, region string, stype serviceType)
|
||||
if creds[0] != "Credential" {
|
||||
return ch, ErrMissingCredTag
|
||||
}
|
||||
credElements := strings.Split(strings.TrimSpace(creds[1]), SlashSeparator)
|
||||
credElements := strings.Split(strings.TrimRight(strings.TrimSpace(creds[1]), SlashSeparator), SlashSeparator)
|
||||
if len(credElements) < 5 {
|
||||
return ch, ErrCredMalformed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user