[asterisk-commits] branch 1.2 r21237 - /branches/1.2/pbx.c
    asterisk-commits at lists.digium.com 
    asterisk-commits at lists.digium.com
       
    Tue Apr 18 16:31:11 MST 2006
    
    
  
Author: kpfleming
Date: Tue Apr 18 18:31:10 2006
New Revision: 21237
URL: http://svn.digium.com/view/asterisk?rev=21237&view=rev
Log:
properly handle brace-wrapped strings in variable/function references in the dialplan
Modified:
    branches/1.2/pbx.c
Modified: branches/1.2/pbx.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/pbx.c?rev=21237&r1=21236&r2=21237&view=diff
==============================================================================
--- branches/1.2/pbx.c (original)
+++ branches/1.2/pbx.c Tue Apr 18 18:31:10 2006
@@ -1471,9 +1471,10 @@
 			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--;
    
    
More information about the asterisk-commits
mailing list