diff options
| author | Steve Block <steveblock@google.com> | 2010-03-08 17:52:02 +0000 |
|---|---|---|
| committer | Steve Block <steveblock@google.com> | 2010-03-08 17:52:02 +0000 |
| commit | 2257440f4b261cfc3251a6fc0f3cbd1fa1e548b1 (patch) | |
| tree | fea7e58fd0e9af430c1bcc5966a3615e98af27e3 /docs/html/sdk/api_diff/3/changes | |
| parent | 780a1cb7adee2381fbd57aa163a045149d1283ac (diff) | |
Updates WebAddress to ignore the colon after the host component of a URL if no port is specified
Currently, the regex used to extract the port matches ':' followed by 1 or more
digits. This means that when passed a malformed URL of type <host>:<path>, no
match is made for the port and the ':' is matched as part of the path. Since the
handling of the path adds a leading '/' where absent (see http://b/1011602),
this leads to the URL being converted to <host>/:<path>.
This change updates the port regex to match ':' followed by zero or more digits.
This means that the ':' is always matched, so it does not leak into the path
and the result is <host><path>. This matches the behavior of desktop browsers.
Bug: 2494876
Change-Id: I34b47c8187cf03aa7674c14cd6593de53dce3169
Diffstat (limited to 'docs/html/sdk/api_diff/3/changes')
0 files changed, 0 insertions, 0 deletions
