From 9cb126792ce225e7c7d6ab5d1bf74f58f1844a29 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 7 Feb 2019 11:54:00 +0100 Subject: 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 --- lib/url.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/url.c b/lib/url.c index 73f7f861b..e3728dfcd 100644 --- a/lib/url.c +++ b/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; } -- cgit v1.2.1