Skip to content

Commit

Permalink
url/idnconvert: remove scan for <= 32 ascii values
Browse files Browse the repository at this point in the history
The check was added back in fa93922 before the URL parser would catch
these problems and therefore these will never trigger now.

Closes #3539
  • Loading branch information
bagder committed Feb 9, 2019
1 parent f260b9e commit 9cb1267
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/url.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9cb1267

Please sign in to comment.