]> granicus.if.org Git - neomutt/commit
Allow IPv6 literal addresses in URLs. (closes #3681)
authorKevin McCarthy <kevin@8t8.us>
Sat, 15 Oct 2016 21:45:55 +0000 (14:45 -0700)
committerRichard Russon <rich@flatcap.org>
Fri, 28 Oct 2016 10:12:20 +0000 (11:12 +0100)
commitd20a069e5bbd00150709ee578edfe7741ee478c6
tree1fd56cc1fdac25d107a01e4fca788f2d5479b885
parent2778d834b49cb315091549a439178b794aad86a1
Allow IPv6 literal addresses in URLs. (closes #3681)

RFCs 2732 and 3986 specify a literal IPv6 address be surrounded by
"[]".

This patch removes the "[]" delimiters when parsing the URL, but adds
them back in url_ciss_tostring() if the host name contains a ':'.

Thanks to Evgeni Golov for the original patch.
url.c