Bugzilla – Bug 262
Don't escape '%' when doing URL resolution. (bug 5802) (credit: hs)
Last modified: 2009-11-23 17:16:56 CET
Index: source =================================================================== --- source (revision 1834) +++ source (revision 1835) @@ -1228,9 +1228,9 @@ <p>If parsing <var title="">url</var> resulted in a <span title="url-path"><path></span> component, then replace the matching substring of <var title="">url</var> with the string that - results from applying the following steps to each character that - doesn't match the original <path> production defined in RFC - 3986:</p> + results from applying the following steps to each character other + than U+0025 PERCENT SIGN (%) that doesn't match the original + <path> production defined in RFC 3986:</p> <ol> @@ -1245,14 +1245,14 @@ <div class="example"> <p>For instance if <var title="">url</var> was "<code - title="">//example.com/a^b☺c%FFd/?e</code>", then the + title="">//example.com/a^b☺c%FFd%z/?e</code>", then the <span title="url-path"><path></span> component's substring - would be "<code title="">/a^b☺c%FFd/</code>" and the two + would be "<code title="">/a^b☺c%FFd%z/</code>" and the two characters that would have to be escaped would be "<code title="">^</code>" and "<code title="">☺</code>". The result after this step was applied would therefore be that <var title="">url</var> now had the value "<code - title="">//example.com/a%5Eb%E2%98%BAc%FFd/?e</code>".</p> + title="">//example.com/a%5Eb%E2%98%BAc%FFd%z/?e</code>".</p> </div> @@ -1263,9 +1263,9 @@ <p>If parsing <var title="">url</var> resulted in a <span title="url-query"><query></span> component, then replace the matching substring of <var title="">url</var> with the string that - results from applying the following steps to each character that - doesn't match the original <query> production defined in RFC - 3986:</p> + results from applying the following steps to each character other + than U+0025 PERCENT SIGN (%) that doesn't match the original + <query> production defined in RFC 3986:</p> <ol>