diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-01 15:57:05 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-01 15:57:05 +0000 |
commit | 04df54629edba0ea491c685ecf0e61babd50d4bf (patch) | |
tree | cde444fb0fb71c9cd306d40f5f6c9efcaf69b24b /main | |
parent | 0da57b4435b4f84f924a2a344ba74413299d7ace (diff) |
This small tweek will hopefully fix 7859, and silence all possible others
along that line.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41674 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/pbx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c index 039d7beb3..ac88d5a01 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -736,11 +736,12 @@ enum ext_match_t { * 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 */ |