summaryrefslogtreecommitdiffstats
path: root/system/core/Input.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-03-20 14:56:05 +0100
committerAndrey Andreev <narf@devilix.net>2015-03-20 14:56:05 +0100
commita375c354432b87405671a52fdb053b48ad72313b (patch)
treec5db91b1a5a278faa656fb9299ceb509ba49ec3f /system/core/Input.php
parentf4cb8f9590c9d02d228b0ab67be6ac0ca51e0087 (diff)
parent46a67d33388b4b79397f8f48ab39fcc2fdf8ea73 (diff)
Merge pull request #3682 from ahnh/UnitTest_ipaddress
Updated CI_Input unit tests and fixed undefined offset error in CI_Input::ip_address()
Diffstat (limited to 'system/core/Input.php')
-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 6be4b9a6c..12332cf51 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -490,9 +490,9 @@ class CI_Input {
)
);
- for ($i = 0; $i < 8; $i++)
+ for ($j = 0; $j < 8; $j++)
{
- $ip[$i] = intval($ip[$i], 16);
+ $ip[$j] = intval($ip[$j], 16);
}
$sprintf = '%016b%016b%016b%016b%016b%016b%016b%016b';