From f20dac42c398c437ff65c79c9a5610bd8e04af91 Mon Sep 17 00:00:00 2001 From: "brettw@google.com" Date: Wed, 30 Jul 2008 23:50:22 +0000 Subject: I looked at the full dump from the previous crashes and it looks like a testing issue. Hopefully it will be magically unbroken. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/data_url.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'net/base/data_url.cc') diff --git a/net/base/data_url.cc b/net/base/data_url.cc index 4040a66..31edbd0 100644 --- a/net/base/data_url.cc +++ b/net/base/data_url.cc @@ -99,7 +99,8 @@ bool DataURL::Parse(const GURL& url, std::string* mime_type, // could be part of the payload, so don't strip it. if (base64_encoded) { temp_data = UnescapeURLComponent(temp_data, - UnescapeRule::SPACES | UnescapeRule::PERCENTS); + UnescapeRule::SPACES | UnescapeRule::URL_SPECIAL_CHARS | + UnescapeRule::CONTROL_CHARS); } // Strip whitespace. @@ -112,7 +113,8 @@ bool DataURL::Parse(const GURL& url, std::string* mime_type, if (!base64_encoded) { temp_data = UnescapeURLComponent(temp_data, - UnescapeRule::SPACES | UnescapeRule::PERCENTS); + UnescapeRule::SPACES | UnescapeRule::URL_SPECIAL_CHARS | + UnescapeRule::CONTROL_CHARS); } if (base64_encoded) -- cgit v1.1