Mercurial > hg > nginx
diff src/http/modules/ngx_http_referer_module.c @ 1242:ae555e0549ca
strstr() -> strchr()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 06 Jun 2007 12:24:10 +0000 |
parents | db7c468c447d |
children | 8ef04207c84f |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_referer_module.c +++ b/src/http/modules/ngx_http_referer_module.c @@ -352,7 +352,7 @@ ngx_http_valid_referers(ngx_conf_t *cf, continue; } - p = (u_char *) ngx_strstr(value[i].data, "/"); + p = (u_char *) ngx_strchr(value[i].data, '/'); if (p) { uri.len = (value[i].data + value[i].len) - p;