Skip to content

url.Parse invalid userinfo 1.9 - > 1.10 #24129

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

Closed
deepch opened this issue Feb 26, 2018 · 3 comments
Closed

url.Parse invalid userinfo 1.9 - > 1.10 #24129

deepch opened this issue Feb 26, 2018 · 3 comments

Comments

@deepch
Copy link

deepch commented Feb 26, 2018

func url.Parse

rtsp://admin:[kfljrjv,[email protected]:554/mpeg4

return

go 1.9

err = nil

go 1.10

err = parse rtsp://admin:[kfljrjv,[email protected]:554/mpeg4: net/url: invalid userinfo

error on char [ go 1.10

@namusyaka
Copy link
Member

It's on purpose, I think.
See the issue and its CL.

If you want to do more productive report on this subject, please fill out the required information according to github template.

@deepch
Copy link
Author

deepch commented Feb 26, 2018

I did not find an answer to this behavior and how to fix it except rollback at 1.9
I realized that I have to tell all users not to use ], but I think this is a bad idea.

@namusyaka
Copy link
Member

@deepch It works well for passing the escaped ] (%5B).
Will this not be a solution?

@namusyaka namusyaka reopened this Feb 27, 2018
@golang golang locked and limited conversation to collaborators Feb 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants