mirror of
https://github.com/nginx/nginx.git
synced 2024-11-29 20:24:21 -06:00
Added syntax checking of the second parameter of the "split_clients" directive.
This commit is contained in:
parent
6888516b2b
commit
10c205a1b3
@ -138,6 +138,13 @@ ngx_conf_split_clients_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||
}
|
||||
|
||||
name = value[2];
|
||||
|
||||
if (name.len < 2 || name.data[0] != '$') {
|
||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||
"invalid variable name \"%V\"", &name);
|
||||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
||||
name.len--;
|
||||
name.data++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user