handle whitepace around expression
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 23 Aug 2005 22:03:24 +0000 (22:03 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 23 Aug 2005 22:03:24 +0000 (22:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6390 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_logic.c

index 13cd6b1..7c9c1af 100755 (executable)
@@ -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)