Last active
December 12, 2025 11:11
-
-
Save timruffles/d079b8030ed942fbec13790e20e592b8 to your computer and use it in GitHub Desktop.
Golang's url.Parse is very permissive: everything here parses without error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Input Hostname Protocol Path Query | |
| "<h1>hi there</h1>" <h1>hi there</h1> | |
| "" | |
| " " | |
| "$ whoami" $ whoami | |
| "not a url" not a url | |
| "???" ?? | |
| "?://???" ://??? | |
| " ? " | |
| " why?? : ; /" why ? : ; / | |
| "kthxby:LOL http://yo" kthxby | |
| "user:pass@thing?" user | |
| "x://user:pass@????????" x ??????? | |
| "@@" @@ | |
| "&&&&&" &&&&& | |
| "?=&=&?" =&=&? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment