]> granicus.if.org Git - apache/commitdiff
remove initial isascii check entirely
authorEric Covener <covener@apache.org>
Thu, 22 Dec 2016 14:22:22 +0000 (14:22 +0000)
committerEric Covener <covener@apache.org>
Thu, 22 Dec 2016 14:22:22 +0000 (14:22 +0000)
We are already checking an even narrower set of characters
just below.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1775664 13f79535-47bb-0310-9956-ffa450edef68

server/vhost.c

index e0aaedc6562f119eea82e0f6faced5950ffbd053..c4bd846f7d9f5e0e5903d22113bbacb629ff030e 100644 (file)
@@ -757,12 +757,6 @@ static apr_status_t strict_hostname_check(request_rec *r, char *host)
     int is_dotted_decimal = 1, leading_zeroes = 0, dots = 0;
 
     for (ch = host; *ch; ch++) {
-#if ! APR_CHARSET_EBCDIC
-        if (!apr_isascii(*ch)) {
-            goto bad;
-        }
-        else 
-#endif
         if (apr_isalpha(*ch) || *ch == '-') {
             is_dotted_decimal = 0;
         }