aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-06 17:26:38 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-06 17:26:38 +0000
commit37af22206f8bb82217cc624eb8ca8f5e9c362f4a (patch)
tree1970d5641dea7f1b031bb8a5bd4c37cc69a4b003 /apps
parentc4c348616405ea48dcf22c7c0b958ce2ce1d27b8 (diff)
Merged revisions 180532 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r180532 | dvossel | 2009-03-06 11:19:55 -0600 (Fri, 06 Mar 2009) | 9 lines 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/trunk@180534 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions