add backslash to escape the backslash escape char in channel variable expansion
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4996 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d73dc724ef
commit
8755dea7b8
|
@ -1243,6 +1243,10 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
|
|||
if (*p == '\\') {
|
||||
if (*(p + 1) == '$') {
|
||||
nv = 1;
|
||||
} else if (*(p + 1) == '\\') {
|
||||
*c++ = *p++;
|
||||
len++;
|
||||
continue;
|
||||
}
|
||||
p++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue