Mercurial > hg > nginx
comparison src/core/ngx_string.h @ 3116:98e288c6dac3
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
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 12 Sep 2009 09:28:37 +0000 |
parents | 819bea4e964e |
children | 098100f5f54b |
comparison
equal
deleted
inserted
replaced
3115:204ea173234f | 3116:98e288c6dac3 |
---|---|
156 u_char *ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n); | 156 u_char *ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n); |
157 | 157 |
158 ngx_int_t ngx_rstrncmp(u_char *s1, u_char *s2, size_t n); | 158 ngx_int_t ngx_rstrncmp(u_char *s1, u_char *s2, size_t n); |
159 ngx_int_t ngx_rstrncasecmp(u_char *s1, u_char *s2, size_t n); | 159 ngx_int_t ngx_rstrncasecmp(u_char *s1, u_char *s2, size_t n); |
160 ngx_int_t ngx_memn2cmp(u_char *s1, u_char *s2, size_t n1, size_t n2); | 160 ngx_int_t ngx_memn2cmp(u_char *s1, u_char *s2, size_t n1, size_t n2); |
161 ngx_int_t ngx_dns_strcmp(u_char *s1, u_char *s2); | |
161 | 162 |
162 ngx_int_t ngx_atoi(u_char *line, size_t n); | 163 ngx_int_t ngx_atoi(u_char *line, size_t n); |
163 ssize_t ngx_atosz(u_char *line, size_t n); | 164 ssize_t ngx_atosz(u_char *line, size_t n); |
164 off_t ngx_atoof(u_char *line, size_t n); | 165 off_t ngx_atoof(u_char *line, size_t n); |
165 time_t ngx_atotm(u_char *line, size_t n); | 166 time_t ngx_atotm(u_char *line, size_t n); |