Merge lp://staging/~kalikiana/midori/urlunescaping into lp://staging/midori
Proposed by
Cris Dywan
Status: | Work in progress | ||||
---|---|---|---|---|---|
Proposed branch: | lp://staging/~kalikiana/midori/urlunescaping | ||||
Merge into: | lp://staging/midori | ||||
Diff against target: |
46 lines (+11/-6) 2 files modified
katze/midori-uri.vala (+6/-6) tests/magic-uri.c (+5/-0) |
||||
To merge this branch: | bzr merge lp://staging/~kalikiana/midori/urlunescaping | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
gue5t gue5t | Needs Fixing | ||
Review via email:
|
Commit message
Midori.URI.unescape and don't unescape %
To post a comment you must log in.
Unmerged revisions
- 6329. By Cris Dywan
-
Don't unescape % in encoded URLs
- 6328. By Cris Dywan
-
Clarify the intention of Midori.URI.unescape
- 6327. By Cris Dywan
-
Drop superfluous null check on unescape()
We pass a guaranteed non-null and it doesn't accept null either
The test is wrong: we *do* want to unescape the %21 to '!' in <http:// www.google. com/%21% 00ok>; it should be unescaped to <http:// www.google. com/!%00ok>, such that the presence of %00 does not alter the transformation we apply to the "%21" sequence.
Another solid test case is <http:// everything2. com/title/ %2526%252364% 253B>, which we currently *over*-unescape (to "http:// everything2. com/title/ %26%2364% 3B"), such that after visiting the url hitting Enter in the url bar will reach a 404 page. It's actually as escaped as it can be as presented ("http:// everything2. com/title/ %2526%252364% 253B"): the only escaped characters are %25s, which shouldn't be unescaped (since doing so would cause them to "eat" following digits when a user hits enter).