Mercurial > hg > nginx
comparison src/http/modules/ngx_http_referer_module.c @ 599:869b6444d234 release-0.3.21
nginx-0.3.21-RELEASE import
*) Feature: the ngx_http_perl_module.
*) Change: the "valid_referers" directive allows the referreres without
URI part.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 16 Jan 2006 14:56:53 +0000 |
parents | ebc68d8ca496 |
children | 77f77f53214a |
comparison
equal
deleted
inserted
replaced
598:bfa12c280dec | 599:869b6444d234 |
---|---|
166 } | 166 } |
167 } | 167 } |
168 | 168 |
169 len = last - p; | 169 len = last - p; |
170 | 170 |
171 if (len == 0) { | |
172 goto invalid; | |
173 } | |
174 | |
175 if (uri == NGX_HTTP_REFERER_NO_URI_PART) { | 171 if (uri == NGX_HTTP_REFERER_NO_URI_PART) { |
176 goto valid; | 172 goto valid; |
177 } | 173 } |
178 | 174 |
179 if (len < uri->len || ngx_strncmp(uri->data, p, uri->len) != 0) { | 175 if (len < uri->len || ngx_strncmp(uri->data, p, uri->len) != 0) { |