comparison src/http/modules/ngx_http_referer_module.c @ 148:ea622d8acb38 NGINX_0_3_21

nginx 0.3.21 *) Feature: the ngx_http_perl_module. *) Change: the "valid_referers" directive allows the referreres without URI part.
author Igor Sysoev <http://sysoev.ru>
date Mon, 16 Jan 2006 00:00:00 +0300
parents e1c6ac408b68
children 50bd986c5d63
comparison
equal deleted inserted replaced
147:d1b9f90d95f6 148:ea622d8acb38
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) {