Skip to content

Commit

Permalink
Stop decoding all %2e's in paths
Browse files Browse the repository at this point in the history
This basically reverts bee5ad8 as it
did not end up shipping in Firefox and the tentative conclusion is that
percent-decoding in URLs while parsing creates more trouble than it’s
worth.

We’ll still handle %2e when it’s part of a single-dot or double-dot
path segment.

Fixes #87.
  • Loading branch information
annevk committed Dec 29, 2016
1 parent 26caf49 commit a95292a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1900,12 +1900,8 @@ string <var>input</var>, optionally with a <a>base URL</a> <var>base</var>, opti
<li><p>If <a>c</a> is "<code>%</code>" and <a>remaining</a> does
not start with two <a>ASCII hex digits</a>, <a>syntax violation</a>.

<li><p>If <a>c</a> is "<code>%</code>" and <a>remaining</a>, <a>ASCII lowercased</a> starts
with "<code>2e</code>", append "<code>.</code>" to <var>buffer</var> and increase
<var>pointer</var> by two.

<li><p>Otherwise, <a>UTF-8 percent encode</a> <a>c</a> using the <a>default encode set</a>,
and append the result to <var>buffer</var>.
<li><p><a>UTF-8 percent encode</a> <a>c</a> using the <a>default encode set</a>, and append
the result to <var>buffer</var>.
</ol>
</ol>

Expand Down

0 comments on commit a95292a

Please sign in to comment.