lib1560: test set path containing LR or CR

Ref: #16874
Closes #16875
This commit is contained in:
Daniel Stenberg 2025-03-30 16:47:42 +02:00
parent 6f0bc43b08
commit 8579cf4016
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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/",