aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-11 04:35:33 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-11 04:35:33 +0000
commit0e9a40904d2e7ad9ae4d7fe41b4d2be0a8f94ea8 (patch)
tree5a134d282fc5d5be372ce9b534dc7467641cce0c /main/pbx.c
parent3fd19006f89cec2f9fe41d73946d48116cc44582 (diff)
A dollar sign by itself, not indicating a start of a variable or expression prematurely ends substitution (closes issue #10939)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85356 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 76af9567d..120cfa7d4 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -1573,6 +1573,8 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v
nextexp = nextthing;
pos = nextexp - whereweare;
break;
+ default:
+ pos = 1;
}
}
@@ -1731,8 +1733,7 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v
count -= length;
cp2 += length;
}
- } else
- break;
+ }
}
}