diff options
Diffstat (limited to 'pbx.c')
-rw-r--r-- | pbx.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1471,9 +1471,10 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v needsub = 0; /* Find the end of it */ - while(brackets && *vare) { + while (brackets && *vare) { if ((vare[0] == '$') && (vare[1] == '{')) { needsub++; + } else if (vare[0] == '{') { brackets++; } else if (vare[0] == '}') { brackets--; |