From 18fa561af43862143a98de3eb0c3085e970db039 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Thu, 11 Oct 2007 04:35:33 +0000 Subject: [PATCH] A dollar sign by itself, not indicating a start of a variable or expression prematurely ends substitution (closes issue #10939) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85356 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/pbx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/pbx.c b/main/pbx.c index 76af9567d7..120cfa7d4a 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; + } } }