mirror of
https://github.com/curl/curl.git
synced 2026-08-24 21:53:37 +03:00
urlapi: accept :: as a valid IPv6 address
Text 1560 is extended to verify. Reported-by: Pavel Volgarev Fixes #5344 Closes #5351
This commit is contained in:
parent
11e4ac8291
commit
7f1c098728
2 changed files with 10 additions and 1 deletions
|
|
@ -129,6 +129,15 @@ struct querycase {
|
|||
};
|
||||
|
||||
static struct testcase get_parts_list[] ={
|
||||
{"[::1]",
|
||||
"http | [11] | [12] | [13] | [::1] | [15] | / | [16] | [17]",
|
||||
CURLU_GUESS_SCHEME, 0, CURLUE_OK },
|
||||
{"[::]",
|
||||
"http | [11] | [12] | [13] | [::] | [15] | / | [16] | [17]",
|
||||
CURLU_GUESS_SCHEME, 0, CURLUE_OK },
|
||||
{"https://[::1]",
|
||||
"https | [11] | [12] | [13] | [::1] | [15] | / | [16] | [17]",
|
||||
0, 0, CURLUE_OK },
|
||||
{"user:moo@ftp.example.com/color/#green?no-black",
|
||||
"ftp | user | moo | [13] | ftp.example.com | [15] | /color/ | [16] | "
|
||||
"green?no-black",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue