From b024c0bcb5c8406e000bbc68e01f986833a09166 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 27 Mar 2017 15:41:24 +0100 Subject: Tests: Add nsurl tests for unnecessary and bad escape values. --- test/nsurl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/nsurl.c b/test/nsurl.c index 4fbf3e1d8..a96ea348e 100644 --- a/test/nsurl.c +++ b/test/nsurl.c @@ -153,6 +153,12 @@ static const struct test_pairs create_tests[] = { /* punycode */ { "http://a.कॉम/a", "http://a.xn--11b4c3d/a" }, { "https://smog.大众汽车/test", "https://smog.xn--3oq18vl8pn36a/test"}, + + /* unnecessary escape */ + { "http://%7a%7A/", "http://zz/" }, + + /* bad escape */ + { "http://%1g%G0/", "http://%1g%g0/" }, }; /** -- cgit v1.2.3