Skip to content

Conversation

@katomaso
Copy link
Contributor

@katomaso katomaso commented Jan 6, 2026

Username and password can contain special symbols because the can be url-encoded

Changes included in this PR

URL unquote username and password by default so they can include / : and @.

Current behavior

If password container any of the URL special characters the URL got parsed badly and connection didn't work.

New behavior

URL is more compliant.

Impact

This would break any passwords containing % but allows for : / @ and other symbols.

Checklist

  1. Does your submission pass the existing tests?
  2. Are there new tests that cover these additions/changes?
  3. Have you linted your code locally before submission?

Copy link
Contributor

@HerrMuellerluedenscheid HerrMuellerluedenscheid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@katomaso
Copy link
Contributor Author

katomaso commented Jan 8, 2026

Actually it doesn't even break passwords that previously contained "%". Only if it was a valid url-quoting.

$ python -c 'from urllib.parse import unquote; print(unquote("pass%word"))'
'pass%word'

So this change is really just a fix - not a major change.

@HerrMuellerluedenscheid
Copy link
Contributor

Actually it doesn't even break passwords that previously contained "%". Only if it was a valid url-quoting.

$ python -c 'from urllib.parse import unquote; print(unquote("pass%word"))'
'pass%word'

So this change is really just a fix - not a major change.

Great! I already approved that change. So you should be able to merge if I'm not mistaken. Or I do that... Ah I'll hit it. Thanks for the fix!

@HerrMuellerluedenscheid HerrMuellerluedenscheid merged commit 2994d36 into Yakifo:main Jan 8, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants