# HG changeset patch # User Roman Arutyunyan # Date 1513852180 -10800 # Node ID d91a8c4ac6bb10bb30c598a4f2c993fc34bf8cec # Parent 7f28b61c92f0a39de760f822c2a48588f1b8d80f 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}. diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c --- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -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; }