]> granicus.if.org Git - curl/commit
url: reject ASCII control characters and space in host names
authorDaniel Stenberg <daniel@haxx.se>
Fri, 17 Nov 2017 15:48:37 +0000 (16:48 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 22 Nov 2017 10:14:06 +0000 (11:14 +0100)
commitfa939220dfff7607ed7b0522b549ecb482a5e1ac
tree9bca9d18c034a82b117525900fb27a4aa37986af
parent9554c3c6e56e23153d4e1025b62c7a6402464a7c
url: reject ASCII control characters and space in host names

Host names like "127.0.0.1 moo" would otherwise be accepted by some
getaddrinfo() implementations.

Updated test 1034 and 1035 accordingly.

Fixes #2073
Closes #2092
lib/url.c
tests/data/test1034
tests/data/test1035