-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
UrlValidator does not allow basic auth with encoded special characters #36285
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
Labels
Comments
cweiske
added a commit
to mogic-le/symfony
that referenced
this issue
Mar 31, 2020
This was referenced Mar 31, 2020
cweiske
added a commit
to mogic-le/framework
that referenced
this issue
Mar 31, 2020
Special characters in HTTP Basic Auth passwords in an URL need to be url-encoded. Example: foo@bar becomes foo%40bar, in an URL: http://user:foo%40bar@example.org The UrlValidator did not allow percent signs in username and password, and this is changed now. Related bugreport and fix for symfony: - symfony/symfony#36285 - symfony/symfony#36286
fabpot
pushed a commit
that referenced
this issue
Apr 4, 2020
fabpot
added a commit
that referenced
this issue
Apr 4, 2020
…auth part of URLs (cweiske) This PR was submitted for the master branch but it was merged into the 3.4 branch instead. Discussion ---------- [Validator] Allow URL-encoded special characters in basic auth part of URLs | Q | A | ------------- | --- | Branch? | 5.0 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #36285 | License | MIT Special characters in HTTP Basic Auth passwords in an URL need to be url-encoded. Example: `foo@bar` becomes `foo%40bar`, in an URL: `http://user:foo%40bar@example.org` The UrlValidator did not allow percent signs in username and password, and this is changed now. Commits ------- 8a56c50 Allow URL-encoded special characters in basic auth part of URLs
symfony-splitter
pushed a commit
to symfony/validator
that referenced
this issue
Apr 4, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected: 5.0.7 (all versions since #11601)
Description
Special characters in HTTP Basic Auth passwords in an URL need to be url-encoded.
Example:
foo@bar
becomesfoo%40bar
, in an URL:http://user:foo%40bar@example.org
The UrlValidator does not allow percent signs in username and password.
Possible Solution
Allow % in username and password part of UrlValidator regex.
The text was updated successfully, but these errors were encountered: