run expand_vars if input contains a special escaped character not just when it contains a variable to eat up back slashes

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13015 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-04-14 15:24:30 +00:00
parent 59b3cdc2a6
commit 21538b2bf9
5 changed files with 16 additions and 3 deletions

View File

@@ -1916,7 +1916,7 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
return (char *) in;
}
nv = switch_string_var_check_const(in);
nv = switch_string_var_check_const(in) || switch_string_has_escaped_data(in);
if (!nv) {
return (char *) in;