https://github.com/JuliaLang/julia
Revision 88062ea7cb35bd5769e4f7895c9db9d64acc9535 authored by Fons van der Plas on 08 March 2022, 18:45:34 UTC, committed by GitHub on 08 March 2022, 18:45:34 UTC
The pad character `=` is required in base64 encoding, but not in
decoding. Padding characters are not needed to correctly decode:
https://en.wikipedia.org/wiki/Base64#Output_padding

This PR makes it possible to decode base64-encoded strings/streams
without padding, matching the behavior in V8 in data urls.

(The [official spec](https://datatracker.ietf.org/doc/html/rfc4648#section-4)
for Base64 states that padding is required for base64-encoding, but it
does not specify a requirement for decoding.)
1 parent 02abca3
History
Tip revision: 88062ea7cb35bd5769e4f7895c9db9d64acc9535 authored by Fons van der Plas on 08 March 2022, 18:45:34 UTC
[Base64] making padding optional (#44503)
Tip revision: 88062ea
File Mode Size
.buildkite
.devcontainer
.github
base
cli
contrib
deps
doc
etc
src
stdlib
test
.clang-format -rw-r--r-- 3.3 KB
.codecov.yml -rw-r--r-- 52 bytes
.gitattributes -rw-r--r-- 65 bytes
.gitignore -rw-r--r-- 433 bytes
.mailmap -rw-r--r-- 12.1 KB
CITATION.bib -rw-r--r-- 513 bytes
CITATION.cff -rw-r--r-- 940 bytes
CONTRIBUTING.md -rw-r--r-- 22.5 KB
HISTORY.md -rw-r--r-- 349.4 KB
LICENSE.md -rw-r--r-- 1.3 KB
Make.inc -rw-r--r-- 49.6 KB
Makefile -rw-r--r-- 26.2 KB
NEWS.md -rw-r--r-- 1.8 KB
README.md -rw-r--r-- 7.4 KB
THIRDPARTY.md -rw-r--r-- 3.7 KB
VERSION -rw-r--r-- 10 bytes
julia.spdx.json -rw-r--r-- 35.8 KB
sysimage.mk -rw-r--r-- 4.1 KB

README.md

back to top