diff src/http/modules/ngx_http_referer_module.c @ 310:95d92ec39071 NGINX_0_5_25

nginx 0.5.25 *) Bugfix: nginx could not be built with the --without-http_rewrite_module parameter; bug appeared in 0.5.24.
author Igor Sysoev <http://sysoev.ru>
date Mon, 11 Jun 2007 00:00:00 +0400
parents 5bef04fc3fd5
children 429900ca25ee
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;