[PATCH] url: use same credentials on redirect
authorDaniel Stenberg <daniel@haxx.se>
Sat, 12 Oct 2024 21:54:39 +0000 (23:54 +0200)
committerSamuel Henrique <samueloph@debian.org>
Sun, 9 Mar 2025 10:45:45 +0000 (10:45 +0000)
commited305ee2c9f5b16e53c0233a34191dcfb89fda04
tree180de8b99669b9f8691b5a10373c8af58f7af891
parent8b6d47c432d16cfd0720573e741c04a225d1e629
[PATCH] url: use same credentials on redirect

Previously it could lose the username and only use the password.

Added test 998 and 999 to verify.

Reported-by: Tobias Bora
Fixes #15262
Closes #15282
Backported by: Matheus Polkorny <mpolkorny@gmail.com>.

Changes:

- Refresh patch context

- Small change in the Makefile to add a new test

Gbp-Pq: Name url-use-same-credentials-on-redirect.patch
lib/transfer.c
lib/url.c
lib/urldata.h
tests/data/Makefile.inc
tests/data/test998 [new file with mode: 0644]
tests/data/test999 [new file with mode: 0644]