diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-10-16 19:52:49 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-10-16 19:56:27 -0400 |
commit | 44b47fc27110bd81d8bd90c6a08938dd53093c0d (patch) | |
tree | 72fd206b179bf74235d54a02d80a902346b10eeb /src/configfile-glue.c | |
parent | 69c2b2b207448e1b42caed4952a7fc2389d7a1d1 (diff) | |
download | lighttpd-git-44b47fc27110bd81d8bd90c6a08938dd53093c0d.tar.gz |
[core] accept up to 5 digit port num in host cond
(thx zebul66)
accept up to 5 digit port num in $HTTP["host"] condition match
x-ref:
"Alls page and subdomain returns 404 with 1.4.60"
https://redmine.lighttpd.net/boards/2/topics/10074
Diffstat (limited to 'src/configfile-glue.c')
-rw-r--r-- | src/configfile-glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configfile-glue.c b/src/configfile-glue.c index feadf2ba..bba5dcc8 100644 --- a/src/configfile-glue.c +++ b/src/configfile-glue.c @@ -521,7 +521,7 @@ static cond_result_t config_check_cond_nocache(request_st * const r, const data_ /*(r->uri.authority lowercased during request parsing)*/ if (llen && llen != dlen) { match ^= ((llen > dlen) - ? l->ptr[dlen] == ':' && llen - dlen <= 5 + ? l->ptr[dlen] == ':' && llen - dlen <= 6 : dc->string.ptr[(dlen = llen)] == ':') && 0 == memcmp(l->ptr, dc->string.ptr, dlen); break; |