urlapi: '%' is illegal in host names

Update test 1560 to verify

Ref: #10708
Closes #10711
This commit is contained in:
Daniel Stenberg 2023-03-08 13:49:09 +01:00
parent 0546ed54c2
commit 0a0c9b6dfa
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 3 additions and 5 deletions

View file

@ -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;