mirror of
https://github.com/curl/curl.git
synced 2025-02-11 14:50:40 +08:00
url/idnconvert: remove scan for <= 32 ascii values
The check was added back in fa939220df
before the URL parser would catch
these problems and therefore these will never trigger now.
Closes #3539
This commit is contained in:
parent
f260b9e932
commit
9cb126792c
@ -1748,15 +1748,6 @@ static CURLcode idnconvert_hostname(struct connectdata *conn,
|
||||
infof(data, "IDN support not present, can't parse Unicode domains\n");
|
||||
#endif
|
||||
}
|
||||
{
|
||||
char *hostp;
|
||||
for(hostp = host->name; *hostp; hostp++) {
|
||||
if(*hostp <= 32) {
|
||||
failf(data, "Host name '%s' contains bad letter", host->name);
|
||||
return CURLE_URL_MALFORMAT;
|
||||
}
|
||||
}
|
||||
}
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user