mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
allow semicolons to be escaped in call files (issue #5407)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -129,9 +129,17 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f)
|
||||
else
|
||||
c++;
|
||||
}
|
||||
c = strchr(buf, ';');
|
||||
if (c)
|
||||
*c = '\0';
|
||||
|
||||
c = buf;
|
||||
while ((c = strchr(c, ';'))) {
|
||||
if ((c > buf) && (c[-1] == '\\')) {
|
||||
memmove(c - 1, c, strlen(c) + 1);
|
||||
c++;
|
||||
} else {
|
||||
*c = '\0';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Trim trailing white space */
|
||||
while(!ast_strlen_zero(buf) && buf[strlen(buf) - 1] < 33)
|
||||
|
Reference in New Issue
Block a user