-
Notifications
You must be signed in to change notification settings - Fork 17.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net/url: parseQuery() does not check for space in url #39775
Comments
Please provide a runnable sample to demonstrate what you did. Thank you |
//The code above should not print anything out because of the space char behind "service-names=" |
Thank you for your sample code, why do you believe that the space should terminate the URL? Do you have an example where a browser or client send this URL? |
@davecheney |
cc @bradfitz |
@pp5311006 i think this is a question of where the url comes from. It is not possible for a URL with a space in it to be transmitted by HTTP. The space could be present if the url was stored in a database or file or read via input. This sounds like an input validation problem, but equally given the problems this could cause maybe |
@davecheney |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
An err value is returned when the query URL contains space character
What did you see instead?
space character is parsed into the value of the dict
The text was updated successfully, but these errors were encountered: