Unverified Commit 9cb12679 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

The check was added back in fa939220 before the URL parser would catch
these problems and therefore these will never trigger now.

Closes #3539
parent f260b9e9
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -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;
}