1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

lib1560: verify "redirect" to double-slash leading URL

Closes #5849
This commit is contained in:
Daniel Stenberg 2020-08-25 09:56:52 +02:00
parent 3334ee6bcb
commit 259a81555d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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",