From: Kevin P. Fleming Date: Tue, 23 Aug 2005 22:03:24 +0000 (+0000) Subject: handle whitepace around expression X-Git-Tag: 1.2.0-beta1~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6aeb93a629a03c8bbe0cb6716268376544446a2d;p=thirdparty%2Fasterisk.git handle whitepace around expression git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6390 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_logic.c b/funcs/func_logic.c index 13cd6b18e1..7c9c1af1b0 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)