projects
/
PHP-P10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5849609
)
infinite looooooooop :)
author
pk910
<philipp@zoelle1.de>
Thu, 28 Jul 2011 08:06:19 +0000
(10:06 +0200)
committer
pk910
<philipp@zoelle1.de>
Thu, 28 Jul 2011 08:06:19 +0000
(10:06 +0200)
Uplink/IPAddr.class.php
patch
|
blob
|
history
diff --git
a/Uplink/IPAddr.class.php
b/Uplink/IPAddr.class.php
index fbc7c9839c3c7d3c833aa7dd0b0e4ba8fcb4a861..e486fb0caa787509382a2721daed3eb5e29dcf26 100644
(file)
--- a/
Uplink/IPAddr.class.php
+++ b/
Uplink/IPAddr.class.php
@@
-60,6
+60,7
@@
class IPAddr {
$rightBlocks = (strlen($numeric) - $i - 1) / 3;
$skipBlocks = 8 - $j - $rightBlocks;
$j += $skipBlocks;
$rightBlocks = (strlen($numeric) - $i - 1) / 3;
$skipBlocks = 8 - $j - $rightBlocks;
$j += $skipBlocks;
+ $i++;
} else {
$value = Numerics::numToInt($numeric[$i].$numeric[$i+1].$numeric[$i+2]);
$this->ip6[$j++] = dechex($value);
} else {
$value = Numerics::numToInt($numeric[$i].$numeric[$i+1].$numeric[$i+2]);
$this->ip6[$j++] = dechex($value);