提交 d875d23d authored 作者: Anthony Minessale's avatar Anthony Minessale

FSCORE-370

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13414 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9bc4c10b
...@@ -1985,12 +1985,12 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel ...@@ -1985,12 +1985,12 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
if (*p == '\\') { if (*p == '\\') {
if (*(p + 1) == '$') { if (*(p + 1) == '$') {
nv = 1; nv = 1;
p++;
} else if (*(p + 1) == '\\') { } else if (*(p + 1) == '\\') {
*c++ = *p++; *c++ = *p++;
len++; len++;
continue; continue;
} }
p++;
} }
if (*p == '$' && !nv) { if (*p == '$' && !nv) {
......
...@@ -1353,12 +1353,12 @@ SWITCH_DECLARE(char *) switch_event_expand_headers(switch_event_t *event, const ...@@ -1353,12 +1353,12 @@ SWITCH_DECLARE(char *) switch_event_expand_headers(switch_event_t *event, const
if (*p == '\\') { if (*p == '\\') {
if (*(p + 1) == '$') { if (*(p + 1) == '$') {
nv = 1; nv = 1;
p++;
} else if (*(p + 1) == '\\') { } else if (*(p + 1) == '\\') {
*c++ = *p++; *c++ = *p++;
len++; len++;
continue; continue;
} }
p++;
} }
if (*p == '$' && !nv) { if (*p == '$' && !nv) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论