From e334c472fb4be44feec3a73402fc4a2b062cbfc0 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 21 Oct 2006 19:44:22 +0000 Subject: --- 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 0ae956628..e53198836 100644 --- a/user_guide/libraries/input.html +++ b/user_guide/libraries/input.html @@ -12,7 +12,7 @@ @@ -107,7 +107,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 +

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: $config['global_xss_filtering'] = TRUE; @@ -121,7 +121,7 @@ Note: This function should only be used to deal with data upon submission. It's

Code Igniter 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. +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: -- cgit v1.2.3-24-g4f1b