Minor bugfix to IP::prettifyIP.
authorC. Scott Ananian <cscott@cscott.net>
Thu, 12 Sep 2013 15:17:42 +0000 (08:17 -0700)
committerC. Scott Ananian <cscott@cscott.net>
Thu, 12 Sep 2013 15:17:42 +0000 (08:17 -0700)
commitd0e8bde0a911facfde410d5a13ef7c29c1fb9a4c
treed5d122e722225ac68823b0d4ede662cac288181b
parent5b4df7210188a600cf2df83ea535f7642f20f6c7
Minor bugfix to IP::prettifyIP.

The offset returned by preg_match with the PREG_OFFSET_CAPTURE is an
absolute position in the string.  You shouldn't *add* it to the
current position in order to advance past the match.

Change-Id: I3631c34e02d9b830bf841bf960855626fbc88eb0
includes/IP.php