Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Issue 7649024: Fix query string unescaping. (Closed)

Created:
9 years, 4 months ago by mmenke
Modified:
9 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

FormatURL used to escape characters in the query string that GURL doesn't escape when cannonicalizing, and are illegal in the query portion of the URL according to spec. Fix that behavior, so if gurl is a valid url, so is GURL(FormatURL(gurl)). BUG=90387 TEST=NetUtilTest.FormatUrlRoundTripPathASCII, NetUtilTest.FormatUrlRoundTripPathEscape, NetUtilTest.FormatUrlRoundTripQueryASCII, NetUtilTest.FormatUrlRoundTripQueryEscaped Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97093

Patch Set 1 : '' #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : Fix comment #

Patch Set 5 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -4 lines) Patch
M net/base/escape.cc View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M net/base/net_util_unittest.cc View 1 2 3 4 2 chunks +74 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
mmenke
In order to have GURL(FormatURL(gurl)) == gurl, we'd have to stop unescaping all ASCII characters ...
9 years, 4 months ago (2011-08-16 19:29:39 UTC) #1
brettw
LGTM, although I'm not a net reviewer.
9 years, 4 months ago (2011-08-16 20:56:45 UTC) #2
mmenke
Thanks for pointing that out. [+willchan] On 2011/08/16 20:56:45, brettw wrote: > LGTM, although I'm ...
9 years, 4 months ago (2011-08-16 21:07:47 UTC) #3
willchan no longer on Chromium
mmenke is in net/OWNERS, so if he's gotten a review, it's fine. that said, i ...
9 years, 4 months ago (2011-08-16 21:59:16 UTC) #4
mmenke
On 2011/08/16 21:59:16, willchan wrote: > mmenke is in net/OWNERS, so if he's gotten a ...
9 years, 4 months ago (2011-08-16 22:01:55 UTC) #5
commit-bot: I haz the power
9 years, 4 months ago (2011-08-17 03:34:40 UTC) #6
Change committed as 97093

Powered by Google App Engine
This is Rietveld 408576698