mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-06 14:52:38 -07:00
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:
+11
-1
@@ -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 != '>') {
|
||||
|
||||
Reference in New Issue
Block a user