diff options
author | Walter Doekes <walter+asterisk@wjd.nu> | 2014-01-27 08:17:22 +0000 |
---|---|---|
committer | Walter Doekes <walter+asterisk@wjd.nu> | 2014-01-27 08:17:22 +0000 |
commit | cc42229f26c66864913302572f034f19d571d71a (patch) | |
tree | 61f999fbd47d1fddd9041b1d83770cf56669d116 /main/manager.c | |
parent | 33071d636cff3085be3bcc01bbba9d38ca9acb46 (diff) |
manager: The eventfilter= option now takes an extended regex.
In pre-trunk versions (...12) it accepts a basic regex, which is
confusing because all other regexes in asterisk are of the
extended kind.
Review: https://reviewboard.asterisk.org/r/3147/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/manager.c')
-rw-r--r-- | main/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c index 9e88628aa..ef569aa4a 100644 --- a/main/manager.c +++ b/main/manager.c @@ -5121,7 +5121,7 @@ static enum add_filter_result manager_add_filter(const char *filter_pattern, str is_blackfilter = 0; } - if (regcomp(new_filter, filter_pattern, 0)) { /* XXX: the only place we use non-REG_EXTENDED */ + if (regcomp(new_filter, filter_pattern, REG_EXTENDED | REG_NOSUB)) { ao2_t_ref(new_filter, -1, "failed to make regex"); return FILTER_COMPILE_FAIL; } |