Skip to content
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

DB_URL Password complexity is not supported. For example, the password is QAZwsx123@# #805

Closed
songlinshu opened this issue Nov 19, 2022 · 2 comments

Comments

@songlinshu
Copy link

Password complexity is not supported. For example, the password is QAZwsx123@#
image
image

Describe the bug
A clear and concise description of what the bug is. Include code snippets if possible.

@valenting
Copy link
Collaborator

That's because the password is invalid.
https://jsdom.github.io/whatwg-url/#url=bXlzcWw6Ly9zYTpRQVp3c3gxMjMhQCNAMTI3LjAuMC4xOjE0MzMv&base=YWJvdXQ6Ymxhbms=

That's because URL parsers assume the userInfo stops at the first @ and then fails parsing the host because it contains #@.
Special characters in the username or password need to be percent encoded.

You can see this working in the small demo

@songlinshu
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants