From 376fa9f92e4fd6036dcabba4889f8f1eef203da4 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 27 Jan 2019 17:17:12 +0100 Subject: [PATCH] avatar: Fix parsing of avatar data containing whitespace in the base64. --- src/avatar.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/avatar.rs b/src/avatar.rs index f8507bf..0f2e096 100644 --- a/src/avatar.rs +++ b/src/avatar.rs @@ -5,7 +5,7 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. use crate::hashes::Sha1HexAttribute; -use crate::util::helpers::Base64; +use crate::util::helpers::WhitespaceAwareBase64; generate_element!( /// Communicates information about an avatar. @@ -45,7 +45,7 @@ generate_element!( Data, "data", AVATAR_DATA, text: ( /// Vector of bytes representing the avatar’s image. - data: Base64> + data: WhitespaceAwareBase64> ) );