mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 06:48:25 +00:00
doh! don't double-increment the bracket count for embedded references
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21236 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
1
pbx.c
1
pbx.c
@@ -1346,7 +1346,6 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v
|
|||||||
while (brackets && *vare) {
|
while (brackets && *vare) {
|
||||||
if ((vare[0] == '$') && (vare[1] == '{')) {
|
if ((vare[0] == '$') && (vare[1] == '{')) {
|
||||||
needsub++;
|
needsub++;
|
||||||
brackets++;
|
|
||||||
} else if (vare[0] == '{') {
|
} else if (vare[0] == '{') {
|
||||||
brackets++;
|
brackets++;
|
||||||
} else if (vare[0] == '}') {
|
} else if (vare[0] == '}') {
|
||||||
|
|||||||
Reference in New Issue
Block a user