From c644128fdd49a47d791240e0e38b54cd22412bc5 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 4 Jul 2007 23:54:32 +0000 Subject: fixed validation errors... about a zillion of em. --- user_guide/libraries/input.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'user_guide/libraries/input.html') diff --git a/user_guide/libraries/input.html b/user_guide/libraries/input.html index f810029ab..b6747135c 100644 --- a/user_guide/libraries/input.html +++ b/user_guide/libraries/input.html @@ -108,7 +108,7 @@ Note: This function should only be used to deal with data upon submission. It's $data = $this->input->xss_clean($data);

If you want the filter to run automatically every time it encounters POST or COOKIE data you can enable it by opening your -application/config/config.php file and setting this: +application/config/config.php file and setting this:

$config['global_xss_filtering'] = TRUE; @@ -122,7 +122,7 @@ Note: This function should only be used to deal with data upon submission. It's

CodeIgniter comes with three helper functions that let you fetch POST, COOKIE or SERVER items. The main advantage of using the provided functions rather then fetching an item directly ($_POST['something']) is that the functions will check to see if the item is set and return false (boolean) if not. This lets you conveniently use data without having to test whether an item exists first. -In other words, normally you might do something like this: +In other words, normally you might do something like this:

if ( ! isset($_POST['something']))
@@ -211,7 +211,7 @@ Previous Topic:  Image Manipulation Class Top of Page   ·   User Guide Home   ·   Next Topic:  Loader Class -

+

CodeIgniter  ·  Copyright © 2007  ·  Ellislab, Inc.

-- cgit v1.2.3-24-g4f1b