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

Fix @ in URL path confusing the parser #2906

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

itowlson
Copy link
Contributor

@itowlson itowlson commented Nov 5, 2024

Fixes #2905.

I've added some tests to cover the behaviour. However, it will get confused in a different way if the username-password segment contains a forward slash (ivan:sec/ret@example.com). I'm not sure if that's a concern? @rylev you may know a better way to tackle this in which case feel free to close this!

Copy link
Collaborator

@rylev rylev left a comment

Choose a reason for hiding this comment

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

This seems like an improvement though we probably want to at some point throw away this code and use some sort of off-the-shelf URL parser.

crates/factor-outbound-networking/src/config.rs Outdated Show resolved Hide resolved
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
@itowlson itowlson merged commit 0685481 into fermyon:main Nov 5, 2024
17 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.

incorrect outbound http validation blocks request if url contains '@'
3 participants