| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,7 +54,7 @@ var protocolPattern = /^([a-z0-9.+-]+:)/i, | |||
| 54 | 54 | delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'], | |
| 55 | 55 | ||
| 56 | 56 | // RFC 2396: characters not allowed for various reasons. | |
| 57 | - unwise = ['{', '}', '|', '\\', '^', '~', '`'].concat(delims), | ||
| 57 | + unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims), | ||
| 58 | 58 | ||
| 59 | 59 | // Allowed by RFCs, but cause of XSS attacks. Always escape these. | |
| 60 | 60 | autoEscape = ['\''].concat(unwise), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -747,9 +747,9 @@ var parseTests = { | |||
| 747 | 747 | host: 'x:1', | |
| 748 | 748 | port: '1', | |
| 749 | 749 | hostname: 'x', | |
| 750 | - pathname: '/%27%20%3C%3E%22%60/%7B%7D%7C%5C%5E%7E%60/', | ||
| 751 | - path: '/%27%20%3C%3E%22%60/%7B%7D%7C%5C%5E%7E%60/', | ||
| 752 | - href: 'http://x:1/%27%20%3C%3E%22%60/%7B%7D%7C%5C%5E%7E%60/' | ||
| 750 | + pathname: '/%27%20%3C%3E%22%60/%7B%7D%7C%5C%5E~%60/', | ||
| 751 | + path: '/%27%20%3C%3E%22%60/%7B%7D%7C%5C%5E~%60/', | ||
| 752 | + href: 'http://x:1/%27%20%3C%3E%22%60/%7B%7D%7C%5C%5E~%60/' | ||
| 753 | 753 | }, | |
| 754 | 754 | ||
| 755 | 755 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments