mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
Bug 7086 - pbx_checkcondition substitution, so that arbitrary strings are true (for regex)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -115,7 +115,7 @@ static char *builtin_function_if(struct ast_channel *chan, char *cmd, char *data
|
||||
if (iffalse)
|
||||
iffalse = ast_strip_quoted(iffalse, "\"", "\"");
|
||||
|
||||
if ((ret = ast_true(expr) ? iftrue : iffalse)) {
|
||||
if ((ret = pbx_checkcondition(expr) ? iftrue : iffalse)) {
|
||||
ast_copy_string(buf, ret, len);
|
||||
ret = buf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user