mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
fixup! Ignore spaces in base64 data URLs. Fix #1268.
This commit is contained in:
parent
82a34164a8
commit
ee771e96b3
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@ fn load(load_data: LoadData, start_chan: Sender<LoadResponse>) {
|
|||
let bytes = percent_decode(parts.get(1).as_bytes());
|
||||
|
||||
if is_base64 {
|
||||
// See #1268
|
||||
// FIXME(#2909): It’s unclear what to do with non-alphabet characters,
|
||||
// but Acid 3 apparently depends on spaces being ignored.
|
||||
let bytes = bytes.move_iter().filter(|&b| b != ' ' as u8).collect::<Vec<u8>>();
|
||||
// FIXME(#2877): use bytes.as_slice().from_base64() when we upgrade to a Rust version
|
||||
// that includes https://github.com/rust-lang/rust/pull/15810
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue