mirror of
https://github.com/minio/minio.git
synced 2025-04-20 18:44:21 -04: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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sanitize the source object name similar to NewMultipart and PutObject API
|
||||||
|
srcObject = trimLeadingSlash(srcObject)
|
||||||
|
|
||||||
if vid != "" && vid != nullVersionID {
|
if vid != "" && vid != nullVersionID {
|
||||||
_, err := uuid.Parse(vid)
|
_, err := uuid.Parse(vid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user