-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SHA1 Case issue #21
Comments
I was wondering if solution mentioned here: rclone/rclone#7345 (comment) Replace: return srcHash == dstHash, ht, srcHash, dstHash, nil with return strings.ToUpper(srcHash) == strings.ToUpper(dstHash), ht, srcHash, dstHash, nil solves this problem? |
I've created pull request: #27 but given that I couldn't exactly reproduce this issue (no idea in which case Proton would return uppercase SHA1 instead of lowercased one) it is somewhat blind fix. |
I will review it along with other changes that I have queued up on my side! Thank you for the PR! Indeed, as you said, the way to test it is ... hard. What I usually do is upload files from rclone side and see if I can open it with web and iOS, and the other way around ... |
Instead of using For future reference, for complex Unicode cases, there is "third party" package from the golang devs: Fold This is overkill, If you want to be extra safe with Unicode then the precis from the secure package subdir would be best. |
SHA-1 hash shouldn't have weird unicode issues, so I think using Thank you for the references and ideas! :) |
That is true, the only reason I mention I think |
rclone/rclone#7345
The text was updated successfully, but these errors were encountered: