mirror of
https://github.com/rclone/rclone.git
synced 2026-11-04 11:43:22 +00:00
combine: don't return an error message as the remote name for a bad object
This fixes 30 spurious CodeQL path-injection alerts which used the error message as a taint path from HTTP responses into filesystem paths.
This commit is contained in:
1 parent
2eb6f6d961
commit
454430a057
1 file changed
+1
-1
@@ -1104,7 +1104,7 @@ func (o *Object) Remote() string {
|
||||
newPath, err := o.u.pathAdjustment.do(o.Object.String())
|
||||
if err != nil {
|
||||
fs.Errorf(o.Object, "Bad object: %v", err)
|
||||
return err.Error()
|
||||
return ""
|
||||
}
|
||||
return newPath
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user