mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Properly handle @s within hints in AEL.
AEL was not handling the case of a device hint containing an @ symbol, which caused parking hints (e.g. hint(park:exten@context)) to error out the parser. This patch makes AEL treat the @ the same way it treats colon and ampersand now, meaning the characters are included in verbatim. (closes issue #14941) Reported by: bpgoldsb Patches: bug14941.patch uploaded by seanbright (license 71) Tested by: bpgoldsb git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@189462 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -384,6 +384,15 @@ hint_word : word { $$ = $1; }
|
||||
free($3);
|
||||
}
|
||||
}
|
||||
| hint_word AT word {
|
||||
if (asprintf(&($$), "%s@%s", $1, $3) < 0) {
|
||||
ast_log(LOG_WARNING, "asprintf() failed\n");
|
||||
$$ = NULL;
|
||||
} else {
|
||||
free($1);
|
||||
free($3);
|
||||
}
|
||||
}
|
||||
;
|
||||
|
||||
word3_list : word { $$ = $1;}
|
||||
|
Reference in New Issue
Block a user