mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
strstr() -> strchr()
This commit is contained in:
parent
1fddbb85e1
commit
8e3151dce5
@ -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…
Reference in New Issue
Block a user