From ee771e96b3f6113af9dece3649decc9d850a4856 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 23 Jul 2014 19:27:08 +0100 Subject: [PATCH] fixup! Ignore spaces in base64 data URLs. Fix #1268. --- src/components/net/data_loader.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/net/data_loader.rs b/src/components/net/data_loader.rs index 255c33b0661..8f55720e73d 100644 --- a/src/components/net/data_loader.rs +++ b/src/components/net/data_loader.rs @@ -64,7 +64,8 @@ fn load(load_data: LoadData, start_chan: Sender) { 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::>(); // 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