mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:43:38 +03:00
urlapi: '%' is illegal in host names
Update test 1560 to verify Ref: #10708 Closes #10711
This commit is contained in:
parent
0546ed54c2
commit
0a0c9b6dfa
2 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue