aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-02-07 11:54:00 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-02-09 23:39:58 +0100
commit9cb126792ce225e7c7d6ab5d1bf74f58f1844a29 (patch)
tree4de8e8588f71fc6338bcff648bda609c8593f1e4 /lib
parentf260b9e9323015fd5790fc7a4c97214ceeac641b (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c9
1 files changed, 0 insertions, 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;
}