]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_ael: Fix pattern matching against literal '+'
authorSean Bright <sean.bright@gmail.com>
Thu, 11 Apr 2019 16:03:07 +0000 (12:03 -0400)
committerSean Bright <sean.bright@gmail.com>
Thu, 11 Apr 2019 20:10:33 +0000 (14:10 -0600)
commit71c7864d1d7e7aafda12cb4cb4ed8a2f02d8f4a1
tree29c61f55afdeab0645a545ffdea06dccf5528862
parentfbed32a1a5e38b6ab4e963ae8ca8627e02f7d4bd
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
res/ael/pval.c