summaryrefslogtreecommitdiffstats
path: root/system/core/Input.php
diff options
context:
space:
mode:
authorIgnasimg <ignasimg@gmail.com>2015-02-26 02:46:14 +0100
committerIgnasimg <ignasimg@gmail.com>2015-02-26 02:46:14 +0100
commitcae95883a03b686d24b1d62191f38723ae958960 (patch)
tree8b08679370de4bc1d756f15c8aaa73f838a56bca /system/core/Input.php
parent0b5569f11b9eab01e3b1571eb6012308a3868f01 (diff)
funny tabs & spaces added and removed.
Diffstat (limited to 'system/core/Input.php')
-rw-r--r--system/core/Input.php38
1 files changed, 20 insertions, 18 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index 97884d309..14f3e1083 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -103,16 +103,16 @@ class CI_Input {
*/
protected $headers = array();
- protected $_raw_input_stream = NULL;
+ protected $_raw_input_stream;
/**
- * Input stream data
- *
- * Parsed from php://input at runtime
- *
- * @see CI_Input::input_stream()
- * @var array
- */
+ * Input stream data
+ *
+ * Parsed from php://input at runtime
+ *
+ * @see CI_Input::input_stream()
+ * @var array
+ */
protected $_input_stream = NULL;
/**
@@ -301,23 +301,25 @@ class CI_Input {
// ------------------------------------------------------------------------
/**
- * Fetch an item from the php://input stream
- *
- * Useful when you need to access PUT, DELETE or PATCH request data.
- *
- * @param string $index Index for item to be fetched
- * @param bool $xss_clean Whether to apply XSS filtering
- * @return mixed
- */
+ * Fetch an item from the php://input stream
+ *
+ * Useful when you need to access PUT, DELETE or PATCH request data.
+ *
+ * @param string $index Index for item to be fetched
+ * @param bool $xss_clean Whether to apply XSS filtering
+ * @return mixed
+ */
public function input_stream($index = NULL, $xss_clean = NULL)
{
- // Prior to PHP 5.6, the input stream can only be read once,
- // so we'll need to check if we have already done that first.
+ // Prior to PHP 5.6, the input stream can only be read once,
+ // so we'll need to check if we have already done that first.
if ( ! is_array($this->_input_stream))
{
+ // $this->raw_input_stream will trigger __get().
parse_str($this->raw_input_stream, $this->_input_stream);
is_array($this->_input_stream) OR $this->_input_stream = array();
}
+
return $this->_fetch_from_array($this->_input_stream, $index, $xss_clean);
}