mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
fix nested brackets
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6172 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1355,6 +1355,15 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
|
||||
*e++ = '\0';
|
||||
break;
|
||||
}
|
||||
|
||||
if (br > 0) {
|
||||
if (e != s && *e == '{') {
|
||||
br++;
|
||||
} else if (br > 1 && *e == '}') {
|
||||
br--;
|
||||
}
|
||||
}
|
||||
|
||||
e++;
|
||||
}
|
||||
p = e;
|
||||
@@ -1380,7 +1389,7 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
|
||||
|
||||
if (stream.data) {
|
||||
char *expanded = NULL;
|
||||
|
||||
|
||||
if ((expanded = switch_channel_expand_variables(channel, vval)) == vval) {
|
||||
expanded = NULL;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user