diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-18 23:31:10 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-18 23:31:10 +0000 |
commit | 60a5c538db38c27e8ea4cb105bb10dfbf8199cae (patch) | |
tree | b7a9fe430c9a4f0a4606fdad893b2e2ebf189db1 /pbx.c | |
parent | 4ce69e1bd47f5ceb66c2f88232c5a56e718e5627 (diff) |
properly handle brace-wrapped strings in variable/function references in the dialplan
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@21237 f38db490-d61c-443f-a65b-d21fe96a405b
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--; |