summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl/lib/urlapi.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-05-16 15:43:51 (GMT)
committerBrad King <brad.king@kitware.com>2022-05-16 15:43:51 (GMT)
commit71747a28ea56d8e2f86759176c15fc1e56f5f605 (patch)
treee49f7f73e1b16cdc08f05666cd5e3089584b493d /Utilities/cmcurl/lib/urlapi.c
parent02902188ecfb85824c4bea56c2d3262791adbda9 (diff)
parent9d8f81f4f8ac4a234ced9c446958fdfcaed4faa3 (diff)
downloadCMake-71747a28ea56d8e2f86759176c15fc1e56f5f605.zip
CMake-71747a28ea56d8e2f86759176c15fc1e56f5f605.tar.gz
CMake-71747a28ea56d8e2f86759176c15fc1e56f5f605.tar.bz2
Merge branch 'upstream-curl' into update-curl
* upstream-curl: curl 2022-05-11 (462196e6)
Diffstat (limited to 'Utilities/cmcurl/lib/urlapi.c')
-rw-r--r--Utilities/cmcurl/lib/urlapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Utilities/cmcurl/lib/urlapi.c b/Utilities/cmcurl/lib/urlapi.c
index 99a0f69..2a36de6 100644
--- a/Utilities/cmcurl/lib/urlapi.c
+++ b/Utilities/cmcurl/lib/urlapi.c
@@ -228,7 +228,7 @@ static void strcpy_url(char *output, const char *url, bool relative)
*/
bool Curl_is_absolute_url(const char *url, char *buf, size_t buflen)
{
- size_t i;
+ int i;
DEBUGASSERT(!buf || (buflen > MAX_SCHEME_LEN));
(void)buflen; /* only used in debug-builds */
if(buf)
@@ -678,8 +678,8 @@ static CURLUcode hostname_check(struct Curl_URL *u, char *hostname)
#endif
}
else {
- /* letters from the second string is not ok */
- len = strcspn(hostname, " \r\n");
+ /* letters from the second string are not ok */
+ len = strcspn(hostname, " \r\n\t/:#?!@");
if(hlen != len)
/* hostname with bad content */
return CURLUE_BAD_HOSTNAME;