diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-04-11 13:20:15 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-04-13 11:17:30 +0200 |
commit | d715d2ac89abc0fc98ccb220c7f7cc148e747144 (patch) | |
tree | 18e0e2e6a8422ca30ac77e47a16118de953503eb /docs/libcurl/curl_url_set.3 | |
parent | 79c4864a563824b19044ef98599f0ccdad262e84 (diff) |
urlapi: stricter CURLUPART_PORT parsing
Only allow well formed decimal numbers in the input.
Document that the number MUST be between 1 and 65535.
Add tests to test 1560 to verify the above.
Ref: https://github.com/curl/curl/issues/3753
Closes #3762
Diffstat (limited to 'docs/libcurl/curl_url_set.3')
-rw-r--r-- | docs/libcurl/curl_url_set.3 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/libcurl/curl_url_set.3 b/docs/libcurl/curl_url_set.3 index 4c8ff9810..4096d8a23 100644 --- a/docs/libcurl/curl_url_set.3 +++ b/docs/libcurl/curl_url_set.3 @@ -5,7 +5,7 @@ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * -.\" * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. +.\" * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms @@ -63,7 +63,9 @@ Scheme cannot be URL decoded on set. The host name can use IDNA. The string must then be encoded as your locale says or UTF-8 (when winidn is used). .IP CURLUPART_PORT -Port cannot be URL encoded on set. +Port cannot be URL encoded on set. The given port number is provided as a +string and the decimal number must be between 1 and 65535. Anything else will +return an error. .IP CURLUPART_PATH If a path is set in the URL without a leading slash, a slash will be inserted automatically when this URL is read from the handle. |