mirror of
https://github.com/curl/curl.git
synced 2026-07-22 20:27:17 +03:00
urlapi: strip off scope id from numerical IPv6 addresses
... to make the host name "usable". Store the scope id and put it back when extracting a URL out of it. Also makes curl_url_set() syntax check CURLUPART_HOST. Fixes #3817 Closes #3822
This commit is contained in:
parent
0281262819
commit
bdb2dbc103
5 changed files with 192 additions and 12 deletions
|
|
@ -31,4 +31,14 @@ lib1560
|
|||
</tool>
|
||||
</client>
|
||||
|
||||
<verify>
|
||||
<stdout>
|
||||
we got [fe80::20c:29ff:fe9c:409b]
|
||||
we got https://[::1]/hello.html
|
||||
we got https://example.com/hello.html
|
||||
we got https://[fe80::20c:29ff:fe9c:409b%25eth0]/hello.html
|
||||
we got [fe80::20c:29ff:fe9c:409b]
|
||||
success
|
||||
</stdout>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue