text/url: fix port handling in vlc_UrlParse
authorFilip Roséen <filip@atch.se>
Fri, 28 Oct 2016 12:46:10 +0000 (14:46 +0200)
committerThomas Guillem <thomas@gllm.fr>
Fri, 28 Oct 2016 17:02:21 +0000 (19:02 +0200)
commitbe6b2bced6d43e4bd4dcd0da7d7d4e6a22f2b23b
treebb540847e4902b62ead92e59c3a8ef6837e0b057
parent4564b01ce519bf11b4109ab861c81ca8d064d016
text/url: fix port handling in vlc_UrlParse

Differences compared to the previous implementation:

 - accept URLs with empty port-specification (RFC3986, 3.2.3).

 - reject port-specification with leading sign (RFC3986 only
   allows *DIGIT).

refs #17555

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
src/text/url.c