From 212fb07be2a00c43483865d7b000d3549f5080b6 Mon Sep 17 00:00:00 2001 From: Ben Edmunds Date: Sat, 20 Aug 2011 14:02:33 -0500 Subject: Resolved issue 167 - Input Class Userguide Update --- user_guide/libraries/input.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'user_guide/libraries/input.html') diff --git a/user_guide/libraries/input.html b/user_guide/libraries/input.html index 311f76ee9..77e28488a 100644 --- a/user_guide/libraries/input.html +++ b/user_guide/libraries/input.html @@ -73,11 +73,11 @@ Input Class

The security filtering function is called automatically when a new controller is invoked. It does the following:

@@ -133,13 +133,13 @@ else
$this->input->post('some_data', TRUE);

To return an array of all POST items call without any parameters.

-

To return all POST items and pass them through the XSS filter leave the first parameter blank while setting the second parameter to boolean;

+

To return all POST items and pass them through the XSS filter set the first parameter NULL while setting the second parameter to boolean;

The function returns FALSE (boolean) if there are no items in the POST.

- $this->input->post(); // returns all POST items with XSS filter + $this->input->post(NULL, TRUE); // returns all POST items with XSS filter
- $this->input->post(NULL, FALSE); // returns all POST items without XSS + $this->input->post(); // returns all POST items without XSS filter

$this->input->get()

@@ -149,13 +149,13 @@ else
$this->input->get('some_data', TRUE);

To return an array of all GET items call without any parameters.

-

To return all GET items and pass them through the XSS filter leave the first parameter blank while setting the second parameter to boolean;

+

To return all GET items and pass them through the XSS filter set the first parameter NULL while setting the second parameter to boolean;

The function returns FALSE (boolean) if there are no items in the GET.

- $this->input->get(); // returns all GET items with XSS filter + $this->input->get(NULL, TRUE); // returns all GET items with XSS filter
- $this->input->get(NULL, FALSE); // returns all GET items without XSS filtering + $this->input->get(); // returns all GET items without XSS filtering

$this->input->get_post()

-- cgit v1.2.3-24-g4f1b