summaryrefslogtreecommitdiffstats
path: root/server/vhost.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/vhost.c')
-rw-r--r--server/vhost.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/vhost.c b/server/vhost.c
index 1896595653..e0aaedc656 100644
--- a/server/vhost.c
+++ b/server/vhost.c
@@ -757,10 +757,13 @@ 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 if (apr_isalpha(*ch) || *ch == '-') {
+ else
+#endif
+ if (apr_isalpha(*ch) || *ch == '-') {
is_dotted_decimal = 0;
}
else if (ch[0] == '.') {