mirror of
https://github.com/rclone/rclone.git
synced 2025-01-09 15:58:28 +01:00
sftp: always convert the checksum to lower case - fixes #4518
This commit is contained in:
parent
9a9a134188
commit
a0494479f9
@ -1087,7 +1087,7 @@ func shellEscape(str string) string {
|
||||
func parseHash(bytes []byte) string {
|
||||
// For strings with backslash *sum writes a leading \
|
||||
// https://unix.stackexchange.com/q/313733/94054
|
||||
return strings.Split(strings.TrimLeft(string(bytes), "\\"), " ")[0] // Split at hash / filename separator
|
||||
return strings.ToLower(strings.Split(strings.TrimLeft(string(bytes), "\\"), " ")[0]) // Split at hash / filename separator / all convert to lowercase
|
||||
}
|
||||
|
||||
// Parses the byte array output from the SSH session
|
||||
|
Loading…
Reference in New Issue
Block a user