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

Issue 164504: Unescape username/passwords obtained from URLs before using them for HTTP aut... (Closed)

Created:
11 years, 4 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), willchan no longer on Chromium
Visibility:
Public.

Description

Unescape username/passwords obtained from URLs before using them for HTTP auth. BUG=http://crbug.com/19200 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23403

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -7 lines) Patch
M net/http/http_network_transaction.h View 2 chunks +8 lines, -0 lines 1 comment Download
M net/http/http_network_transaction.cc View 1 2 2 chunks +13 lines, -5 lines 3 comments Download
M net/http/http_network_transaction_unittest.cc View 3 chunks +74 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
eroman
brettw: please review wtc: FYI, since you had written a TODO on this.
11 years, 4 months ago (2009-08-13 19:48:34 UTC) #1
brettw
http://codereview.chromium.org/164504/diff/13/1006 File net/http/http_network_transaction.cc (right): http://codereview.chromium.org/164504/diff/13/1006#newcode1715 Line 1715: *username = UnescapeAndDecodeUTF8URLComponent(url.username(), flags); Just making sure you're ...
11 years, 4 months ago (2009-08-13 20:03:34 UTC) #2
eroman
http://codereview.chromium.org/164504/diff/13/1006 File net/http/http_network_transaction.cc (right): http://codereview.chromium.org/164504/diff/13/1006#newcode1715 Line 1715: *username = UnescapeAndDecodeUTF8URLComponent(url.username(), flags); On 2009/08/13 20:03:34, brettw ...
11 years, 4 months ago (2009-08-13 20:35:36 UTC) #3
brettw
LGTM then
11 years, 4 months ago (2009-08-13 20:38:52 UTC) #4
wtc
11 years, 4 months ago (2009-08-13 21:37:36 UTC) #5
Darin, could you review this CL?

http://codereview.chromium.org/164504/diff/13/1006
File net/http/http_network_transaction.cc (left):

http://codereview.chromium.org/164504/diff/13/1006#oldcode1670
Line 1670: // TODO(wtc) It may be necessary to unescape the username and
password
I wrote this TODO(wtc) based on what Darin told me, without
really understanding it.  So it would be nice to have Darin
review this.

http://codereview.chromium.org/164504/diff/13/1007
File net/http/http_network_transaction.h (right):

http://codereview.chromium.org/164504/diff/13/1007#newcode266
Line 266: static void GetIdentifyFromUrl(const GURL& url,
Consider moving this method to net_util.h, so that we don't
need to add new FRIEND_TESTs.

Nit: Use "URL" in the function's name.

Powered by Google App Engine
This is Rietveld 408576698