Files
asterisk/main
David Vossel f94e5b2d7c Merged revisions 180534 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r180534 | dvossel | 2009-03-06 11:26:38 -0600 (Fri, 06 Mar 2009) | 15 lines
  
  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: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@180535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-03-06 17:28:52 +00:00
..
2007-12-11 22:20:22 +00:00
2009-01-06 21:38:19 +00:00
2007-12-27 20:11:20 +00:00
2007-11-21 00:23:49 +00:00