diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-03-08 13:49:09 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-03-08 15:33:43 +0100 |
commit | 0a0c9b6dfa0de4a4cdfe3ac7f5f28f807d9b297f (patch) | |
tree | 07654e98bb5d52dc2bf8e7cf0109355fbb835760 /lib/urlapi.c | |
parent | 0546ed54c2481b64425d233798d02e646d86e86f (diff) | |
download | curl-0a0c9b6dfa0de4a4cdfe3ac7f5f28f807d9b297f.tar.gz |
urlapi: '%' is illegal in host names
Update test 1560 to verify
Ref: #10708
Closes #10711
Diffstat (limited to 'lib/urlapi.c')
-rw-r--r-- | lib/urlapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/urlapi.c b/lib/urlapi.c index d078a49fc..c2caafbf0 100644 --- a/lib/urlapi.c +++ b/lib/urlapi.c @@ -629,7 +629,7 @@ static CURLUcode hostname_check(struct Curl_URL *u, char *hostname, } else { /* letters from the second string are not ok */ - len = strcspn(hostname, " \r\n\t/:#?!@{}[]\\$\'\"^`*<>=;,+&()"); + len = strcspn(hostname, " \r\n\t/:#?!@{}[]\\$\'\"^`*<>=;,+&()%"); if(hlen != len) /* hostname with bad content */ return CURLUE_BAD_HOSTNAME; |