aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-18 23:31:10 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-18 23:31:10 +0000
commit60a5c538db38c27e8ea4cb105bb10dfbf8199cae (patch)
treeb7a9fe430c9a4f0a4606fdad893b2e2ebf189db1 /pbx.c
parent4ce69e1bd47f5ceb66c2f88232c5a56e718e5627 (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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index 9ef1c1936..183a0acda 100644
--- a/pbx.c
+++ b/pbx.c
@@ -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--;