Skip to content

fix: improve URL validation to avoid unexpected redirects#1344

Merged
behnazh-w merged 1 commit intomainfrom
behnazh/improve-url-validation
Mar 31, 2026
Merged

fix: improve URL validation to avoid unexpected redirects#1344
behnazh-w merged 1 commit intomainfrom
behnazh/improve-url-validation

Conversation

@behnazh-w
Copy link
Copy Markdown
Member

Summary

This PR improves URL validation to prevent unexpected redirects caused by ambiguous parsing behavior.
A new utility function has been introduced to ensure that username and password fields are not implicitly populated by urlparse, which could otherwise lead to incorrect hostname resolution and unintended redirects.

Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 31, 2026
@behnazh-w behnazh-w requested a review from nicallen March 31, 2026 02:58
@behnazh-w behnazh-w merged commit d07edd4 into main Mar 31, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants