]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_url_set.3: mention that users can set content rather freely
authorDaniel Stenberg <daniel@haxx.se>
Tue, 11 Apr 2023 06:59:00 +0000 (08:59 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 11 Apr 2023 09:30:51 +0000 (11:30 +0200)
... which then might render bad URLs if you extract a URL later.

Closes #10921

docs/libcurl/curl_url_set.3

index 36d4a44e932a8c1e7654cebc03af345e485102b2..420ea0ce5517077a2d1198aeaa7ce1d30b1a114f 100644 (file)
@@ -58,6 +58,11 @@ This function call has no particular maximum length for any provided input
 string. In the real world, excessively long field in URLs will cause problems
 even if this API accepts them.
 
+When setting or updating contents of individual URL parts, this API might
+accept data that would not be otherwise possible to set in the string when it
+gets populated as a result of a full URL parse. Beware. If done so, extracting
+a full URL later on from such components might render an invalid URL.
+
 The \fIflags\fP argument is a bitmask with independent features.
 .SH PARTS
 .IP CURLUPART_URL