aboutsummaryrefslogtreecommitdiffstats
path: root/.cleancount
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-06 17:19:55 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-06 17:19:55 +0000
commitc4275cc0a2acc728fd05c441cb43b9566204c15d (patch)
tree68ed9f0d90fc16fdc65a2a7fc23d3933088cd250 /.cleancount
parentb9d0d5c00e2bd81a88a2c200a2004c2c3a4df8f4 (diff)
Fix handling of backreferences for ENUM lookups
enum.c did not handle regex backtraces correctly. The '\1' in the regex is a backreference that requires a pattern match to be inserted. The way the code used to work is that it would find the backreference and insert the entire input string minus the '+'. This is incorrect. The regexec() function takes in a variable called pmatch which is an array of structs containing the start and end indexes for each backreference substring. The original code actually passed the pmatch array pointer into regexec but never did anything with it. Now when a backtrace is found, the backtrace number is looked up in the pmatch array and the correct substring is inserted. (closes issue #14576) Reported by: chris-mac Review: http://reviewboard.digium.com/r/187/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@180532 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to '.cleancount')
0 files changed, 0 insertions, 0 deletions