]> git.ipfire.org Git - thirdparty/curl.git/commit
urlapi: fix relative redirects to fragment-only
authorDaniel Stenberg <daniel@haxx.se>
Wed, 17 Apr 2024 08:42:28 +0000 (10:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Apr 2024 20:41:47 +0000 (22:41 +0200)
commitc37b694e467bf5771e5e661056c0c269f5f5ec23
tree84c4fec095a19706359a4292c510916f84f95305
parent5fb018494de58ac099f2c75768e128dcbea02d2a
urlapi: fix relative redirects to fragment-only

Using the URL API for a redirect URL when the redirected-to string
starts with a hash, ie is only a fragment, the API would produce the
wrong final URL.

Adjusted test 1560 to test for several new redirect cases.

Closes #13394
lib/urlapi.c
tests/libtest/lib1560.c