diff --git a/src/switch_channel.c b/src/switch_channel.c index 04d204c4b5..a0b2f31031 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -1581,11 +1581,6 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel break; } - if (*(p-1) == '\\') { - q = p + 1; - continue; - } - if (*(p+1) != '{') { q = p + 1; continue; @@ -1599,6 +1594,7 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel return (char *)in; } + nv = 0; olen = strlen(in) + 1; indup = strdup(in); diff --git a/src/switch_event.c b/src/switch_event.c index e35b8db70b..46a77419a5 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -1044,11 +1044,6 @@ SWITCH_DECLARE(char *) switch_event_expand_headers(switch_event_t *event, const break; } - if (*(p-1) == '\\') { - q = p + 1; - continue; - } - if (*(p+1) != '{') { q = p + 1; continue;