Permalink
Browse files

url/idnconvert: remove scan for <= 32 ascii values

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 7, 2019
1 parent f260b9e commit 9cb126792ce225e7c7d6ab5d1bf74f58f1844a29
Showing with 0 additions and 9 deletions.
  1. +0 −9 lib/url.c
@@ -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;
}

0 comments on commit 9cb1267

Please sign in to comment.