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

Issue 11645041: Fix URI encoding/decoding of + and space (Closed)

Created:
8 years ago by Søren Gjesse
Modified:
8 years ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix URI encoding/decoding of + and space The URI decoder now encodes space as + and + as %2B. Likewise the URI decode decodes + as space (and %2B as +, but that was already the case). R=lrn@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=16419

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M sdk/lib/uri/encode_decode.dart View 3 chunks +8 lines, -2 lines 2 comments Download
M tests/standalone/io/url_encoding_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/utils/uri_test.dart View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Gjesse
8 years ago (2012-12-20 11:40:02 UTC) #1
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/11645041/diff/1/sdk/lib/uri/encode_decode.dart File sdk/lib/uri/encode_decode.dart (right): https://codereview.chromium.org/11645041/diff/1/sdk/lib/uri/encode_decode.dart#newcode83 sdk/lib/uri/encode_decode.dart:83: if (canonical.indexOf(text[i]) >= 0) { Ick, that looks ...
8 years ago (2012-12-20 23:24:32 UTC) #2
Søren Gjesse
8 years ago (2012-12-21 08:51:19 UTC) #3
https://codereview.chromium.org/11645041/diff/1/sdk/lib/uri/encode_decode.dart
File sdk/lib/uri/encode_decode.dart (right):

https://codereview.chromium.org/11645041/diff/1/sdk/lib/uri/encode_decode.dar...
sdk/lib/uri/encode_decode.dart:83: if (canonical.indexOf(text[i]) >= 0) {
On 2012/12/20 23:24:32, Lasse Reichstein Nielsen wrote:
> Ick, that looks slow - indexOf is linear in the canonical string.

Created a new change to address this.

Powered by Google App Engine
This is Rietveld 408576698