From ae7369b6d04b96f4021e08bd7f61c9e86d64beaa Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 12 Nov 2017 13:25:09 +0100 Subject: URL: return error on malformed URLs with junk after IPv6 bracket Follow-up to aadb7c7. Verified by new test 1263. Closes #2072 --- tests/data/test1263 | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/data/test1263 (limited to 'tests/data/test1263') diff --git a/tests/data/test1263 b/tests/data/test1263 new file mode 100644 index 000000000..7946916e2 --- /dev/null +++ b/tests/data/test1263 @@ -0,0 +1,37 @@ +# similar to test 1260 + + + +HTTP +HTTP GET + + + +# Server-side + + + +# Client-side + + +none + + +http + + +HTTP URL with rubbish after IPv6 bracket + + +-g "http://[%HOSTIP]test:%HTTPPORT/we/want/1263" "http://[%HOSTIP][%HOSTIP]:%HTTPPORT/we/want/1263" "http://user@[::1]@localhost" + + + +# Verify data after the test has been "shot" + +# CURLE_URL_MALFORMAT == 3 + +3 + + + -- cgit v1.2.3