mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
don't ignore left-curly-braces when searching for the end of a variable/function reference; match them up with right-curly-braces so we choose the proper brace to end the reference (will still fail to parse properly if the reference contains unbalanced braces)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21235 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
pbx.c
2
pbx.c
@@ -1347,6 +1347,8 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v
|
||||
if ((vare[0] == '$') && (vare[1] == '{')) {
|
||||
needsub++;
|
||||
brackets++;
|
||||
} else if (vare[0] == '{') {
|
||||
brackets++;
|
||||
} else if (vare[0] == '}') {
|
||||
brackets--;
|
||||
} else if ((vare[0] == '$') && (vare[1] == '['))
|
||||
|
Reference in New Issue
Block a user