]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib1560: verify "redirect" to double-slash leading URL
authorDaniel Stenberg <daniel@haxx.se>
Tue, 25 Aug 2020 07:56:52 +0000 (09:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Aug 2020 11:06:34 +0000 (13:06 +0200)
Closes #5849

tests/libtest/lib1560.c

index d158534d71945ca6af01f4f0c47ca4621af89d03..20f852310d854940192a4f3dd117d223ed8b398f 100644 (file)
@@ -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",