From: Daniel Stenberg <daniel@haxx.se>
Date: Thu, 7 Feb 2019 10:54:00 +0000 (+0100)
Subject: url/idnconvert: remove scan for <= 32 ascii values
X-Git-Tag: curl-7_64_1~177
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cb126792ce225e7c7d6ab5d1bf74f58f1844a29;p=curl

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
---

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;
 }