]> git.ipfire.org Git - thirdparty/curl.git/commit
transfer: clear credentials when redirecting to absolute URL 11412/head
authorDaniel Stenberg <daniel@haxx.se>
Sat, 8 Jul 2023 21:57:29 +0000 (23:57 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 9 Jul 2023 09:12:13 +0000 (11:12 +0200)
commitdd4d1a26959f63a2c0c3217d6e4096f05db148e1
tree84a2a8b7be213761ad25cf97f519d78e587f4ddd
parentdef99e011e88d61a4157863537378ca9c59a79e0
transfer: clear credentials when redirecting to absolute URL

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
lib/transfer.c
lib/url.c
tests/data/Makefile.inc
tests/data/test899 [new file with mode: 0644]