Skip to content
Commit b53fb1d0 authored by Luis Javier Merino's avatar Luis Javier Merino Committed by Tomaz Canabrava
Browse files

Allow IPv6 literals in URIs

This allows recognizing URIs like the following:

http://[2a00:1450:4001:829::200e]/
http://[2a00:1450:4001:829::200e]:80/

Our regexp is not as strict as the syntax in RFC 3986, we just allow any
combination of hex-digits, colons and dots.

Besides, we don't go to the effort of forbidding IP-literals in www. URI
suffixes, so the following invalid suffix is recognized by our regexp:

www.[dead::beef]

but that was already recognized by the old regexp before 3b7e73f5.
parent da41c19a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment