mirror of
https://github.com/nginx/nginx.git
synced 2026-10-22 20:11:17 +00:00
strstr() -> strchr()
This commit is contained in:
parent
1fddbb85e1
commit
8e3151dce5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue