From 8755dea7b8190aab5587cf378eafbe53c856fc4b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 21 Apr 2007 14:23:12 +0000 Subject: [PATCH] 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 --- src/switch_channel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/switch_channel.c b/src/switch_channel.c index 8100f9d0fc..2797b1cb95 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -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++; }