[asterisk-commits] branch 1.2 r27051 - /branches/1.2/funcs/func_logic.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 11 16:02:58 MST 2006


Author: tilghman
Date: Thu May 11 18:02:57 2006
New Revision: 27051

URL: http://svn.digium.com/view/asterisk?rev=27051&view=rev
Log:
Bug 7086 - pbx_checkcondition substitution, so that arbitrary strings are true (for regex)

Modified:
    branches/1.2/funcs/func_logic.c

Modified: branches/1.2/funcs/func_logic.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/funcs/func_logic.c?rev=27051&r1=27050&r2=27051&view=diff
==============================================================================
--- branches/1.2/funcs/func_logic.c (original)
+++ branches/1.2/funcs/func_logic.c Thu May 11 18:02:57 2006
@@ -115,7 +115,7 @@
 	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;
 	} 



More information about the asterisk-commits mailing list