]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib1560: add a test using %25 in the userinfo in a URL
authorDaniel Stenberg <daniel@haxx.se>
Tue, 21 Feb 2023 09:02:34 +0000 (10:02 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Feb 2023 15:10:13 +0000 (16:10 +0100)
Closes #10578

tests/libtest/lib1560.c

index bfb9dba9907fa04f12ef69dddeb120f8789bd39a..98a69f858f124e8d17f9abfaac8754ac9d2d21ef 100644 (file)
@@ -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 | "