From 1ddf632eef76719ba5068820650baec23ace7d2e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 25 Nov 2013 12:34:04 -0600 Subject: [PATCH] FS-6001 --resolve --- src/mod/applications/mod_commands/mod_commands.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 2310666289..51b6acec0b 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -1946,6 +1946,16 @@ SWITCH_STANDARD_API(cond_function) } } + if (strspn(a, "!<>=")) { + expr = a; + } + + if (expr == a) { + a = ""; + } + + while (*expr == ' ') expr++; + while(expr && *expr) { switch(*expr) { case '!':