summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-07-19 13:04:17 +0200
committerAndrey Andreev <narf@devilix.net>2016-07-19 13:04:17 +0200
commit9fd9248a2d712d5ae95bf2e6c6cd036e6b522cbb (patch)
tree07a175d72316b818e91150dd8f387993ce54274c /system/core
parent17fa8defc1b580df4395200f6536498918bc6ea6 (diff)
Fix #4679
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Input.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index 50ca047e8..b81d51ebf 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -519,9 +519,9 @@ class CI_Input {
if ($separator === ':')
{
$netaddr = explode(':', str_replace('::', str_repeat(':', 9 - substr_count($netaddr, ':')), $netaddr));
- for ($i = 0; $i < 8; $i++)
+ for ($j = 0; $j < 8; $j++)
{
- $netaddr[$i] = intval($netaddr[$i], 16);
+ $netaddr[$i] = intval($netaddr[$j], 16);
}
}
else