From 2c7e01dc7a26629b1e8447c54b49d55295bb3cc9 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(-) diff --git a/user_guide/libraries/input.html b/user_guide/libraries/input.html index cfb0d5e1e..10c84a9ea 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