From: Daniel Stenberg Date: Tue, 25 Aug 2020 07:56:52 +0000 (+0200) Subject: lib1560: verify "redirect" to double-slash leading URL X-Git-Tag: curl-7_73_0~213 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=259a81555d4081952f6b7e30b5fa86fff356869b;p=thirdparty%2Fcurl.git lib1560: verify "redirect" to double-slash leading URL Closes #5849 --- diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c index d158534d71..20f852310d 100644 --- a/tests/libtest/lib1560.c +++ b/tests/libtest/lib1560.c @@ -686,6 +686,14 @@ static CURLUcode updateurl(CURLU *u, const char *cmd, unsigned int setflags) } static struct redircase set_url_list[] = { + {"http://example.org/static/favicon/wikipedia.ico", + "//fake.example.com/licenses/by-sa/3.0/", + "http://fake.example.com/licenses/by-sa/3.0/", + 0, 0, 0}, + {"https://example.org/static/favicon/wikipedia.ico", + "//fake.example.com/licenses/by-sa/3.0/", + "https://fake.example.com/licenses/by-sa/3.0/", + 0, 0, 0}, {"file://localhost/path?query#frag", "foo#another", "file:///foo#another",