Make CI_Input:: read-only as well
diff --git a/system/core/Input.php b/system/core/Input.php
index be9f3c1..6be4b9a 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -55,7 +55,7 @@
*
* @var string
*/
- public $ip_address = FALSE;
+ protected $ip_address = FALSE;
/**
* Allow GET array flag
@@ -878,6 +878,10 @@
isset($this->_raw_input_stream) OR $this->_raw_input_stream = file_get_contents('php://input');
return $this->_raw_input_stream;
}
+ elseif ($name === 'ip_address')
+ {
+ return $this->ip_address;
+ }
}
}