mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 12:20:12 +00:00
Fix an error introduced by copying and pasting the handling of the >= operator
for the MATH function. If a single equal sign was used as an operator, the function would treat it is as if it were the >= operator. Now, it properly handles it as an invalid operator. (issue #8665, patch by tempest1) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48955 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -124,7 +124,6 @@ static char *builtin_function_math(struct ast_channel *chan, char *cmd, char *da
|
|||||||
iaction = LTEFUNCTION;
|
iaction = LTEFUNCTION;
|
||||||
}
|
}
|
||||||
} else if ((op = strchr(mvalue1, '='))) {
|
} else if ((op = strchr(mvalue1, '='))) {
|
||||||
iaction = GTFUNCTION;
|
|
||||||
*op = '\0';
|
*op = '\0';
|
||||||
if (*(op+1) == '=') {
|
if (*(op+1) == '=') {
|
||||||
*++op = '\0';
|
*++op = '\0';
|
||||||
|
Reference in New Issue
Block a user