You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2016/12/22 14:22:22 UTC
svn commit: r1775664 - /httpd/httpd/trunk/server/vhost.c
Author: covener
Date: Thu Dec 22 14:22:22 2016
New Revision: 1775664
URL: http://svn.apache.org/viewvc?rev=1775664&view=rev
Log:
remove initial isascii check entirely
We are already checking an even narrower set of characters
just below.
Modified:
httpd/httpd/trunk/server/vhost.c
Modified: httpd/httpd/trunk/server/vhost.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/vhost.c?rev=1775664&r1=1775663&r2=1775664&view=diff
==============================================================================
--- httpd/httpd/trunk/server/vhost.c (original)
+++ httpd/httpd/trunk/server/vhost.c Thu Dec 22 14:22:22 2016
@@ -757,12 +757,6 @@ static apr_status_t strict_hostname_chec
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;
}