[asterisk-commits] murf: trunk r41674 - /trunk/main/pbx.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Sep 1 08:57:05 MST 2006
Author: murf
Date: Fri Sep 1 10:57:05 2006
New Revision: 41674
URL: http://svn.digium.com/view/asterisk?rev=41674&view=rev
Log:
This small tweek will hopefully fix 7859, and silence all possible others
along that line.
Modified:
trunk/main/pbx.c
Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?rev=41674&r1=41673&r2=41674&view=diff
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Fri Sep 1 10:57:05 2006
@@ -736,11 +736,12 @@
* E_MATCHMORE success only on partial match (i.e. leftover digits in pattern)
* E_CANMATCH either of the above.
*/
+
static int _extension_match_core(const char *pattern, const char *data, enum ext_match_t mode)
{
mode &= E_MATCH_MASK; /* only consider the relevant bits */
-
- if (!strcasecmp(pattern,data)) /* note: if this test is left out, then _x. will not match _x. !!! */
+
+ if (mode == E_MATCH && pattern[0] == '_' && strcasecmp(pattern,data)==0) /* note: if this test is left out, then _x. will not match _x. !!! */
return 1;
if (pattern[0] != '_') { /* not a pattern, try exact or partial match */
More information about the asterisk-commits
mailing list