From cd4ed8530fa04fcbd54009e9db6ad9ea2518a10b Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 3 Mar 2013 15:03:57 +1300 Subject: Check that hosts in parse_url do not contain NULL bytes. --- test/test_http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/test_http.py') diff --git a/test/test_http.py b/test/test_http.py index 2cbba936..f41a4e2d 100644 --- a/test/test_http.py +++ b/test/test_http.py @@ -294,8 +294,9 @@ def test_parse_url(): # Invalid IDNA assert not http.parse_url("http://\xfafoo") - assert not http.parse_url("http:/\xc6/localhost:56121") + assert not http.parse_url("http://foo\0") + def test_parse_http_basic_auth(): -- cgit v1.2.3