Handle quoted <'s (bug #2223)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3634 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-08-23 14:16:25 +00:00
parent 60707a4172
commit 1afd98d916
+11 -1
View File
@@ -949,7 +949,17 @@ static char *ditch_braces(char *tmp)
{
char *c = tmp;
char *n;
if ((n = strchr(tmp, '<')) ) {
char *q;
if ((q = strchr(tmp, '"')) ) {
c = q + 1;
if ((q = strchr(c, '"')) )
c = q + 1;
else {
ast_log(LOG_WARNING, "No closing quote in '%s'\n", tmp);
c = tmp;
}
}
if ((n = strchr(c, '<')) ) {
c = n + 1;
while(*c && *c != '>') c++;
if (*c != '>') {