mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Allowed configuration token to start with a variable.
Specifically, it is now allowed to start with a variable expression with braces: ${name}. The opening curly bracket in such a token was previously considered the start of a new block. Variables located anywhere else in a token worked fine: foo${name}.
This commit is contained in:
parent
ce45ded2a8
commit
0ad556fe59
@ -709,6 +709,11 @@ ngx_conf_read_token(ngx_conf_t *cf)
|
||||
last_space = 0;
|
||||
continue;
|
||||
|
||||
case '$':
|
||||
variable = 1;
|
||||
last_space = 0;
|
||||
continue;
|
||||
|
||||
default:
|
||||
last_space = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user