提交 cfd7761e authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Muteesa Fred

FS-10896: [freeswitch-core] Parse error on originate syntax with nested square brackets #resolve

上级 4b39b164
......@@ -2628,7 +2628,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
p = pipe_names[r];
while (p && *p) {
if (*p == '[') {
if (!end && *p == '[') {
end = switch_find_end_paren(p, '[', ']');
if (*(p+1) == '^' && *(p + 2) == '^') {
alt = 1;
......@@ -2652,7 +2652,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
}
if (p == end) {
end = switch_strchr_strict(p, '[', " ");
end = NULL;
}
p++;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论