From dc8f6a947338bfa6ce26fba2cba8f74c7f74f51e Mon Sep 17 00:00:00 2001 From: Steve Murphy Date: Thu, 3 May 2007 14:24:00 +0000 Subject: Merged revisions 62883 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r62883 | murf | 2007-05-03 07:54:56 -0600 (Thu, 03 May 2007) | 1 line These mods fix bug 9623, where an '@' in the eswitch contents causes a syntax error. I also updated the regressions. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@62911 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx/ael/ael.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pbx/ael/ael.y') diff --git a/pbx/ael/ael.y b/pbx/ael/ael.y index d32ded0a6..9c6effe0e 100644 --- a/pbx/ael/ael.y +++ b/pbx/ael/ael.y @@ -153,7 +153,7 @@ static pval *update_last(pval *, YYLTYPE *); /* there will be two shift/reduce conflicts, they involve the if statement, where a single statement occurs not wrapped in curlies in the "true" section the default action to shift will attach the else to the preceeding if. */ -%expect 7 +%expect 8 %error-verbose /* @@ -595,6 +595,8 @@ eswitches : KW_ESWITCHES LC switchlist RC { switchlist : /* empty */ { $$ = NULL; } | word SEMI switchlist { $$ = linku1(nword($1, &@1), $3); } + | word AT word SEMI switchlist { char *x; asprintf(&x,"%s@%s", $1,$3); free($1); free($3); + $$ = linku1(nword(x, &@1), $5);} | switchlist error {$$=$1;} ; -- cgit v1.2.3