diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-01-17 20:04:32 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-01-17 20:04:32 +0000 |
commit | ae33d014ad64c380446d8113bc7b2de115ffa23f (patch) | |
tree | 29a2f51bb8ba23c2a698732fc543bed6798d5967 /src/http/modules/ngx_http_referer_module.c | |
parent | 4a32307de74116ec3aca40cd15e37e26e3bddd79 (diff) | |
download | nginx-ae33d014ad64c380446d8113bc7b2de115ffa23f.tar.gz nginx-ae33d014ad64c380446d8113bc7b2de115ffa23f.zip |
nginx-0.3.22-RELEASE importrelease-0.3.22
*) Feature: the ngx_http_perl_module supports the $r->args and
$r->unescape methods.
*) Feature: the method $r->query_string of ngx_http_perl_module was
canceled.
*) Bugfix: segmentation fault was occurred if the "none" or "blocked"
values was specified in the "valid_referers" directive; the bug had
appeared in 0.3.18.
Diffstat (limited to 'src/http/modules/ngx_http_referer_module.c')
-rw-r--r-- | src/http/modules/ngx_http_referer_module.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_referer_module.c b/src/http/modules/ngx_http_referer_module.c index 0d3ee6f7a..459984eaa 100644 --- a/src/http/modules/ngx_http_referer_module.c +++ b/src/http/modules/ngx_http_referer_module.c @@ -90,10 +90,7 @@ ngx_http_referer_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, rlcf = ngx_http_get_module_loc_conf(r, ngx_http_referer_module); - if (rlcf->hash.buckets == NULL - && rlcf->dns_wildcards == NULL - && rlcf->dns_wildcards->hash.buckets == NULL) - { + if (rlcf->hash.buckets == NULL && rlcf->dns_wildcards == NULL) { goto valid; } @@ -145,7 +142,7 @@ ngx_http_referer_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, } } - if (rlcf->dns_wildcards && rlcf->dns_wildcards->hash.buckets) { + if (rlcf->dns_wildcards) { uri = ngx_hash_find_wildcard(rlcf->dns_wildcards, buf, len); if (uri) { goto uri; |