-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
refactor: Add internal method Utils.encodeForUrl
for properly encoding email addresses for use in URLs
#9541
Conversation
I will reformat the title to use the proper commit message syntax. |
Thanks for opening this pull request! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## alpha #9541 +/- ##
=======================================
Coverage 93.55% 93.55%
=======================================
Files 186 186
Lines 14838 14840 +2
=======================================
+ Hits 13881 13883 +2
Misses 957 957 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@mathieulb does this address the issue you described? |
@mtrezza , it addresses the specific example problem I encountered, but I confirm that it seems to not handle dot, comma, etc., as you suspect, because they are supposed to be in the regexp. PR 8488 would make this PR 9541 obsolete, but PR 9541 isn't obsolete until PR 8488 gets accepted, obviously. If for any reason PR 8488 shouldn't be accepted instead, PR 9541 should get more tests with creative ascii art at the end of the username, to cover all ASCII characters that I listed in the comments of #9111 : |
Then let's merge this PR as it's almost done. Do you have any additional feedback on the PR as it is now?
Does your comment belong to #9541 (comment)? |
mtrezza, I was mainly replying to "does this address the #9111 you described?" which was directed at me, but this also involved referring to the other thread you mention now ("How does it handle dot, comma, etc after the URL?"). I don't have additional feedback (I'm not familiar with the parse source & tests, and I'm not set up to try parse from git at the moment) |
Signed-off-by: Manuel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The username has been removed from the password reset process in #8488. Refactored the test to at least keep the Utils.encodeForUrl
method for future use.
Utils.encodeForUrl
for properly encoding email addresses for use in URLs
Pull Request
Issue
Closes: #9111
Approach
Tasks