mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
s3: Sanitize the source object name in CopyObject handler (#20774)
This commit is contained in:
parent
02f770a0c0
commit
01e520eb23
@ -1191,6 +1191,9 @@ func (api objectAPIHandlers) CopyObjectHandler(w http.ResponseWriter, r *http.Re
|
||||
return
|
||||
}
|
||||
|
||||
// Sanitize the source object name similar to NewMultipart and PutObject API
|
||||
srcObject = trimLeadingSlash(srcObject)
|
||||
|
||||
if vid != "" && vid != nullVersionID {
|
||||
_, err := uuid.Parse(vid)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user