Skip to content

urlglob does not allow dashes in IPv6 zone ID #5576

Description

@puckipedia

It seems that urlglob's IPv6 parsing is less lenient than the actual URL parsing is, it doesn't allow for dashes..

I did this

marisa ~> curl -v 'http://[fe80::1%foo-bar]/`
curl: (3) bad range in URL position 9:
http://[fe80::1%foo-bar]/
        ^

I expected the following

marisa ~> curl -gv 'http://[fe80::1%foo-bar]/'
*   Trying fe80::1:80...

curl/libcurl version

curl 7.70.0 (x86_64-pc-linux-gnu) libcurl/7.70.0 OpenSSL/1.1.1g zlib/1.2.11 libssh2/1.9.0 nghttp2/1.40.0
Release-Date: 2020-04-29
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz NTLM NTLM_WB SPNEGO SSL TLS-SRP UnixSockets

operating system

Linux marisa 5.6.15 #1-NixOS SMP Wed May 27 15:48:31 UTC 2020 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions