aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_logic.c
diff options
context:
space:
mode:
Diffstat (limited to 'funcs/func_logic.c')
-rwxr-xr-xfuncs/func_logic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/funcs/func_logic.c b/funcs/func_logic.c
index 13cd6b18e..7c9c1af1b 100755
--- a/funcs/func_logic.c
+++ b/funcs/func_logic.c
@@ -98,6 +98,7 @@ static char *builtin_function_if(struct ast_channel *chan, char *cmd, char *data
return NULL;
}
+ expr = ast_strip(expr);
if (iftrue)
iftrue = ast_strip_quoted(iftrue, "\"", "\"");
if (iffalse)