Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
urlglob does not allow dashes in IPv6 zone ID #5576
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
I expected the following
On Wed, Jun 17, 2020 at 10:23:14AM -0700, puckipedia wrote: marisa ~> curl -v 'http://[fe80::1%foo-bar]/` curl: (3) bad range in URL position 9: http://[fe80::1%foo-bar]/
This isn't a valid URL. The percent must be escaped, i.e. http://[fe80::1%25foo-bar]/
The only reference to globbing and IPv6 I could find is https://ec.haxx.se/cmdline/cmdline-globbing, which says:
now, I can see why this is occuring, but
If IPv6 literal addresses in URLs shouldn't be supported without
... not a "glob". Now done by passing the supposed host to the URL parser which supposedly will do a better job at identifying "real" numerical IPv6 addresses. Reported-by: puckipedia on github Fixes #5576