From 8579cf4016f4f6003761f6bae69f346bbbdcdd40 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 30 Mar 2025 16:47:42 +0200 Subject: [PATCH] lib1560: test set path containing LR or CR Ref: #16874 Closes #16875 --- tests/libtest/lib1560.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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/",