Skip to content

[3.4][Validator] Allow underscore character "_" in URL username and password #34832

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

Merged
merged 1 commit into from
Dec 5, 2019

Conversation

romainneutron
Copy link
Contributor

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
License MIT

Hello!

It's been a long time since my last push on Symfony :)
Here's a bug fix. I think URL usernames and password may contain an underscore. Let me know!

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

In the https://tools.ietf.org/html/rfc1738 they don't say anything about not allowing this.

Thus, only alphanumerics and the special characters "$-_.+!*'()," may
be used unencoded within a URL.

[...]

Within the user and password field, any ":", "@", or "/" must be encoded.

So, using _ looks like it's allowed in both the user and password.

Thanks Romain!

@fabpot
Copy link
Member

fabpot commented Dec 5, 2019

Thank you @romainneutron.

fabpot added a commit that referenced this pull request Dec 5, 2019
…rname and password (romainneutron)

This PR was merged into the 3.4 branch.

Discussion
----------

[3.4][Validator] Allow underscore character "_" in URL username and password

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| License       | MIT

Hello!

It's been a long time since my last push on Symfony :)
Here's a bug fix. I think URL usernames and password may contain an underscore. Let me know!

Commits
-------

869518b [Validator] Allow underscore character "_" in URL username and password
@fabpot fabpot merged commit 869518b into symfony:3.4 Dec 5, 2019
@romainneutron romainneutron deleted the 3.4-validator-url branch December 5, 2019 20:51
This was referenced Dec 19, 2019
This was referenced Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants