]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add backslash to escape the backslash escape char in channel variable expansion
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 21 Apr 2007 14:23:12 +0000 (14:23 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 21 Apr 2007 14:23:12 +0000 (14:23 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4996 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_channel.c

index 8100f9d0fc9fbca24c88892921559b186fcbeb1a..2797b1cb9559dd1ce58e164cb7c3431e23efaf74 100644 (file)
@@ -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++;
                        }