Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Base64 is not urlsafe #5

Open
tomwaddington opened this issue Oct 28, 2014 · 0 comments
Open

Base64 is not urlsafe #5

tomwaddington opened this issue Oct 28, 2014 · 0 comments

Comments

@tomwaddington
Copy link

Google APIs (specifically Gmail Message.raw), use url-safe base64 encoding and decoding.

At https://github.com/google/autoparse/blob/master/lib/autoparse.rb#L199

Base64.decode64(value)

Should be

Base64.urlsafe_decode64(value)

to prevent decode errors. Same goes for the encoding!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant