From: Igor Sysoev Date: Wed, 6 Jun 2007 12:24:10 +0000 (+0000) Subject: strstr() -> strchr() X-Git-Tag: release-0.5.25~6 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=8e3151dce50f956409970c0cae2f508300e0ec19;p=nginx.git strstr() -> strchr() --- diff --git a/src/http/modules/ngx_http_referer_module.c b/src/http/modules/ngx_http_referer_module.c index b2c2ef597..2d16bd5cb 100644 --- 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, ngx_command_t *cmd, void *conf) 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;