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:
Roman Arutyunyan 2017-12-21 13:29:40 +03:00
parent 6ebe5e7ed4
commit 77111f1bfc
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}