From: Daniel Stenberg Date: Sun, 30 Mar 2025 14:47:42 +0000 (+0200) Subject: lib1560: test set path containing LR or CR X-Git-Tag: curl-8_13_0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8579cf4016f4f6003761f6bae69f346bbbdcdd40;p=thirdparty%2Fcurl.git lib1560: test set path containing LR or CR Ref: #16874 Closes #16875 --- diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c index 9f24ff53a7..0a8b244d76 100644 --- a/tests/libtest/lib1560.c +++ b/tests/libtest/lib1560.c @@ -875,6 +875,22 @@ static const struct setgetcase setget_parts_list[] = { /* !checksrc! disable SPACEBEFORECOMMA 1 */ static const struct setcase set_parts_list[] = { + {"https://example.com/", + "path=one\ntwo,", + "https://example.com/one\ntwo", + 0, 0, CURLUE_OK, CURLUE_OK}, + {"https://example.com/", + "path=one\rtwo,", + "https://example.com/one\rtwo", + 0, 0, CURLUE_OK, CURLUE_OK}, + {"https://example.com/", + "path=one\ntwo,", + "https://example.com/one%0atwo", + 0, CURLU_URLENCODE, CURLUE_OK, CURLUE_OK}, + {"https://example.com/", + "path=one\rtwo,", + "https://example.com/one%0dtwo", + 0, CURLU_URLENCODE, CURLUE_OK, CURLUE_OK}, {"https://example.com/", "host=%43url.se,", "https://%43url.se/",