| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e46bdcf commit 824978e
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1214,12 +1214,7 @@ namespace url { | |||
| 1214 | 1214 | state = kFragment; | |
| 1215 | 1215 | } | |
| 1216 | 1216 | } else { | |
| 1217 | - if (ch == '%' && p[1] == '2' && TO_LOWER(p[2]) == 'e') { | ||
| 1218 | - buffer += '.'; | ||
| 1219 | - p += 2; | ||
| 1220 | - } else { | ||
| 1221 | - AppendOrEscape(&buffer, ch, DefaultEncodeSet); | ||
| 1222 | - } | ||
| 1217 | + AppendOrEscape(&buffer, ch, DefaultEncodeSet); | ||
| 1223 | 1218 | } | |
| 1224 | 1219 | break; | |
| 1225 | 1220 | case kCannotBeBase: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -953,8 +953,8 @@ | |||
| 953 | 953 | "href": "view-source+http://example.net/home?lang=fr#nav", | |
| 954 | 954 | "new_value": "\\a\\%2E\\b\\%2e.\\c", | |
| 955 | 955 | "expected": { | |
| 956 | - "href": "view-source+http://example.net/\\a\\.\\b\\..\\c?lang=fr#nav", | ||
| 957 | - "pathname": "/\\a\\.\\b\\..\\c" | ||
| 956 | + "href": "view-source+http://example.net/\\a\\%2E\\b\\%2e.\\c?lang=fr#nav", | ||
| 957 | + "pathname": "/\\a\\%2E\\b\\%2e.\\c" | ||
| 958 | 958 | } | |
| 959 | 959 | }, | |
| 960 | 960 | { | |
@@ -967,12 +967,12 @@ | |||
| 967 | 967 | } | |
| 968 | 968 | }, | |
| 969 | 969 | { | |
| 970 | - "comment": "Bytes already percent-encoded are left as-is, except %2E.", | ||
| 970 | + "comment": "Bytes already percent-encoded are left as-is, including %2E outside dotted segments.", | ||
| 971 | 971 | "href": "http://example.net", | |
| 972 | 972 | "new_value": "%2e%2E%c3%89té", | |
| 973 | 973 | "expected": { | |
| 974 | - "href": "http://example.net/..%c3%89t%C3%A9", | ||
| 975 | - "pathname": "/..%c3%89t%C3%A9" | ||
| 974 | + "href": "http://example.net/%2e%2E%c3%89t%C3%A9", | ||
| 975 | + "pathname": "/%2e%2E%c3%89t%C3%A9" | ||
| 976 | 976 | } | |
| 977 | 977 | }, | |
| 978 | 978 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1847,30 +1847,30 @@ | |||
| 1847 | 1847 | { | |
| 1848 | 1848 | "input": "http://example.com/foo/%2e%2", | |
| 1849 | 1849 | "base": "about:blank", | |
| 1850 | - "href": "http://example.com/foo/.%2", | ||
| 1850 | + "href": "http://example.com/foo/%2e%2", | ||
| 1851 | 1851 | "origin": "http://example.com", | |
| 1852 | 1852 | "protocol": "http:", | |
| 1853 | 1853 | "username": "", | |
| 1854 | 1854 | "password": "", | |
| 1855 | 1855 | "host": "example.com", | |
| 1856 | 1856 | "hostname": "example.com", | |
| 1857 | 1857 | "port": "", | |
| 1858 | - "pathname": "/foo/.%2", | ||
| 1858 | + "pathname": "/foo/%2e%2", | ||
| 1859 | 1859 | "search": "", | |
| 1860 | 1860 | "hash": "" | |
| 1861 | 1861 | }, | |
| 1862 | 1862 | { | |
| 1863 | 1863 | "input": "http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar", | |
| 1864 | 1864 | "base": "about:blank", | |
| 1865 | - "href": "http://example.com/..bar", | ||
| 1865 | + "href": "http://example.com/%2e.bar", | ||
| 1866 | 1866 | "origin": "http://example.com", | |
| 1867 | 1867 | "protocol": "http:", | |
| 1868 | 1868 | "username": "", | |
| 1869 | 1869 | "password": "", | |
| 1870 | 1870 | "host": "example.com", | |
| 1871 | 1871 | "hostname": "example.com", | |
| 1872 | 1872 | "port": "", | |
| 1873 | - "pathname": "/..bar", | ||
| 1873 | + "pathname": "/%2e.bar", | ||
| 1874 | 1874 | "search": "", | |
| 1875 | 1875 | "hash": "" | |
| 1876 | 1876 | }, | |
@@ -2288,15 +2288,15 @@ | |||
| 2288 | 2288 | { | |
| 2289 | 2289 | "input": "http://www/foo%2Ehtml", | |
| 2290 | 2290 | "base": "about:blank", | |
| 2291 | - "href": "http://www/foo.html", | ||
| 2291 | + "href": "http://www/foo%2Ehtml", | ||
| 2292 | 2292 | "origin": "http://www", | |
| 2293 | 2293 | "protocol": "http:", | |
| 2294 | 2294 | "username": "", | |
| 2295 | 2295 | "password": "", | |
| 2296 | 2296 | "host": "www", | |
| 2297 | 2297 | "hostname": "www", | |
| 2298 | 2298 | "port": "", | |
| 2299 | - "pathname": "/foo.html", | ||
| 2299 | + "pathname": "/foo%2Ehtml", | ||
| 2300 | 2300 | "search": "", | |
| 2301 | 2301 | "hash": "" | |
| 2302 | 2302 | }, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments