[Asterisk-code-review] res_ael: Fix pattern matching against literal '+' (...asterisk[13])

Sean Bright asteriskteam at digium.com
Thu Apr 11 15:10:25 CDT 2019


Hello Friendly Automation, 

I'd like you to reexamine a change. Please visit

    https://gerrit.asterisk.org/c/asterisk/+/11260

to look at the new patch set (#3).

Change subject: res_ael: Fix pattern matching against literal '+'
......................................................................

res_ael: Fix pattern matching against literal '+'

When generating the regular expression that matches against existing
extensions, we need to escape literal characters that can also be
regular expression metacharacters. This was already being done for '*'
but we need to do the same for '+'.

In passing, remove some unreachable code - strcmp() is already run
immediately when entering extension_matches().

ASTERISK-14939 #close
Reported by: klaus3000

Change-Id: I8d2cccb3479168fba1b0a6704c52198b396468f1
---
M res/ael/pval.c
1 file changed, 5 insertions(+), 10 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/60/11260/3
-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/11260
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: I8d2cccb3479168fba1b0a6704c52198b396468f1
Gerrit-Change-Number: 11260
Gerrit-PatchSet: 3
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190411/7c0e4f4d/attachment-0001.html>


More information about the asterisk-code-review mailing list