From bb11969838ec577744d81f21eb5f702bbf67fd45 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 21 Feb 2023 10:02:34 +0100 Subject: [PATCH] lib1560: add a test using %25 in the userinfo in a URL Closes #10578 --- tests/libtest/lib1560.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c index bfb9dba990..98a69f858f 100644 --- a/tests/libtest/lib1560.c +++ b/tests/libtest/lib1560.c @@ -141,6 +141,10 @@ struct clearurlcase { }; static const struct testcase get_parts_list[] ={ + {"https://example.com%252f%40@example.net", + "https | example.com%2f@ | [12] | [13] | example.net | [15] | / " + "| [16] | [17]", + 0, CURLU_URLDECODE, CURLUE_OK }, #ifdef USE_IDN {"https://räksmörgås.se", "https | [11] | [12] | [13] | xn--rksmrgs-5wao1o.se | " -- 2.47.3