[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>
Fri, 8 May 2026 14:16:21 +0000 (07:16 -0700)
commit954f85b3e00bdd53ede9f31f3916894188333a96
treed2e3b39d5c20b4bf655d10b7790c6fe3a33b0d52
parentaa0b9135ccda920d03eda16a0f54fb4d93b42dba
[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]