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

transfer: clear credentials when redirecting to absolute URL #11412

Merged
merged 1 commit into from Jul 9, 2023

Conversation

bagder
Copy link
Member

@bagder bagder commented Jul 8, 2023

To make sure the user and password for the second request is taken from the redirected-to URL.

The -u option only sets credentials for the specified URL, not the redirected-to if the redirect is absolute.

Add test case 899 to verify.

Adjusted test 234.

Reported-by: James Lucas
Fixes #11410

@bagder

This comment was marked as outdated.

@bagder
Copy link
Member Author

bagder commented Jul 9, 2023

Or maybe I need to rethink this.

rethinking

Make sure the user and password for the second request is taken from the
redirected-to URL.

Add test case 899 to verify.

Reported-by: James Lucas
Fixes #11410
Closes #11412
@bagder bagder merged commit dd4d1a2 into master Jul 9, 2023
150 of 158 checks passed
@bagder bagder deleted the bagder/redirect-creds branch July 9, 2023 16:43
bch pushed a commit to bch/curl that referenced this pull request Jul 19, 2023
Make sure the user and password for the second request is taken from the
redirected-to URL.

Add test case 899 to verify.

Reported-by: James Lucas
Fixes curl#11410
Closes curl#11412
ptitSeb pushed a commit to wasix-org/curl that referenced this pull request Sep 25, 2023
Make sure the user and password for the second request is taken from the
redirected-to URL.

Add test case 899 to verify.

Reported-by: James Lucas
Fixes curl#11410
Closes curl#11412
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Password provided in Location header not used in redirect request
1 participant