Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Don't translate URL-safe chars, b64 is doing it for us #781

Merged
merged 1 commit into from
Mar 6, 2018
Merged

Don't translate URL-safe chars, b64 is doing it for us #781

merged 1 commit into from
Mar 6, 2018

Conversation

timvisee
Copy link
Contributor

@timvisee timvisee commented Mar 6, 2018

Send should not translate URL-safe characters to their non-safe variant when decoding a base64 string, as base64-js is already doing that for us. The library seems to be doing it in a more performant manner, therefore I removed the manual translation from Send in this PR.

See the following snippet in the base64-js library:
https://github.com/beatgammit/base64-js/blob/master/index.js#L17-L20

@dannycoates
Copy link
Contributor

Cool! Thank you @timvisee 😄

@dannycoates dannycoates merged commit 4179684 into mozilla:master Mar 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants