]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib1560: verify appending blank URL encoded query string
authorDaniel Stenberg <daniel@haxx.se>
Tue, 31 Oct 2023 15:22:39 +0000 (16:22 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 1 Nov 2023 09:55:58 +0000 (10:55 +0100)
tests/libtest/lib1560.c

index 218f43e22580f6f69984723faeb3ae7907f2523b..9d97cbd0653d19114e64116685c0a4b20e210d71 100644 (file)
@@ -785,6 +785,10 @@ static const struct setgetcase setget_parts_list[] = {
 
 /* !checksrc! disable SPACEBEFORECOMMA 1 */
 static const struct setcase set_parts_list[] = {
+  {"https://example.com/?param=value",
+   "query=\"\",",
+   "https://example.com/",
+   0, CURLU_APPENDQUERY | CURLU_URLENCODE, CURLUE_OK, CURLUE_OK},
   {"https://example.com/",
    "host=\"\",",
    "https://example.com/",