mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-30 10:15:52 +00:00
FS-10896: [freeswitch-core] Parse error on originate syntax with nested square brackets #resolve
This commit is contained in:
parent
f18f261ac9
commit
738823b180
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user