diff options
Diffstat (limited to 'funcs')
-rwxr-xr-x | funcs/func_logic.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/funcs/func_logic.c b/funcs/func_logic.c index 41a50e359..d4e6cdfb7 100755 --- a/funcs/func_logic.c +++ b/funcs/func_logic.c @@ -55,6 +55,12 @@ static char *builtin_function_if(struct ast_channel *chan, char *cmd, char *data } if (expr && iftrue) { + expr = ast_strip_quoted(expr, "\"", "\""); + iftrue = ast_strip_quoted(iftrue, "\"", "\""); + + if (iffalse) { + iffalse = ast_strip_quoted(iffalse, "\"", "\""); + } ret = ast_true(expr) ? iftrue : iffalse; if (ret) { ast_copy_string(buf, ret, len); |