mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 02:34:18 +00:00
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…
x
Reference in New Issue
Block a user