strstr() -> strchr()

This commit is contained in:
Igor Sysoev 2007-06-06 12:24:10 +00:00
parent 1fddbb85e1
commit 8e3151dce5

View File

@ -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;