]> git.kaiwu.me - nginx.git/commit
If .domain.com, .sub.domain.com, and .domain-some.com were defined,
authorIgor Sysoev <igor@sysoev.ru>
Sat, 12 Sep 2009 09:28:37 +0000 (09:28 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 12 Sep 2009 09:28:37 +0000 (09:28 +0000)
commit96e36ef25243d7f49d821dbf8e47937ddbdea3f6
treeb4c9331ac7383ed25bee7adb01269e5b7717a31e
parente0f1d0afcce898cbf2a40a7bad36e7faaa904702
If .domain.com, .sub.domain.com, and .domain-some.com were defined,
then .sub.domain.com was matched by .domain.com: wildcard names hash
was built incorrectly due to sorting order issue of "." vs "-".
They were sorted as
    com.domain  com.domain-some  com.domain.sub
while they should be sorted as
    com.domain  com.domain.sub   com.domain-some
for correct hash building
src/core/ngx_string.c
src/core/ngx_string.h
src/http/modules/ngx_http_map_module.c
src/http/modules/ngx_http_referer_module.c
src/http/ngx_http.c