From 802f33dc67a3f18f5aee8854ac1635fe1a8e939d Mon Sep 17 00:00:00 2001 From: Alan Jenkins Date: Sun, 16 Dec 2012 15:25:09 +0000 Subject: doc: xss_clean() method is in Security, not Input The Input doc does talk about xss filtering, but they refer you to Security for details, which is where the function is actually defined. It gives more detail about what the function is supposed to do, and avoids some irrelevance. It's probably not a big deal; it just looks wrong. It _might_ have been responsible for [confusion](http://stackoverflow.com/questions/13570522/this-input-xss-cleandata-giving-fatal-error-with-codeigniter) sometimes. --- user_guide_src/source/libraries/form_validation.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/libraries/form_validation.rst b/user_guide_src/source/libraries/form_validation.rst index fbe540ce0..bab61f124 100644 --- a/user_guide_src/source/libraries/form_validation.rst +++ b/user_guide_src/source/libraries/form_validation.rst @@ -914,7 +914,7 @@ to use: ==================== ========= =================================================================================================== Name Parameter Description ==================== ========= =================================================================================================== -**xss_clean** No Runs the data through the XSS filtering method, described in the :doc:`Input Class ` page. +**xss_clean** No Runs the data through the XSS filtering method, described in the :doc:`Security Class ` page. **prep_for_form** No Converts special characters so that HTML data can be shown in a form field without breaking it. **prep_url** No Adds "\http://" to URLs if missing. **strip_image_tags** No Strips the HTML from image tags leaving the raw URL. @@ -1081,4 +1081,4 @@ This function is identical to the **set_checkbox()** function above. :: /> - /> \ No newline at end of file + /> -- cgit v1.2.3-24-g4f1b From 93fa7e1cb720ff367b2d6326ae3c57802192cbf8 Mon Sep 17 00:00:00 2001 From: Alan Jenkins Date: Thu, 3 Jan 2013 11:04:27 +0000 Subject: doc: fix table markup in previous commit "These "border lines" need to have a length higher or equal to the longest line in the table that would be generated, so you'll have to update them as well." - narfbg --- user_guide_src/source/libraries/form_validation.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/user_guide_src/source/libraries/form_validation.rst b/user_guide_src/source/libraries/form_validation.rst index bab61f124..ce1695d62 100644 --- a/user_guide_src/source/libraries/form_validation.rst +++ b/user_guide_src/source/libraries/form_validation.rst @@ -911,15 +911,15 @@ Prepping Reference The following is a list of all the prepping methods that are available to use: -==================== ========= =================================================================================================== +==================== ========= ======================================================================================================= Name Parameter Description -==================== ========= =================================================================================================== +==================== ========= ======================================================================================================= **xss_clean** No Runs the data through the XSS filtering method, described in the :doc:`Security Class ` page. **prep_for_form** No Converts special characters so that HTML data can be shown in a form field without breaking it. **prep_url** No Adds "\http://" to URLs if missing. **strip_image_tags** No Strips the HTML from image tags leaving the raw URL. **encode_php_tags** No Converts PHP tags to entities. -==================== ========= =================================================================================================== +==================== ========= ======================================================================================================= .. note:: You can also use any native PHP functions that permits one parameter, like ``trim()``, ``htmlspecialchars()``, ``urldecode()``, -- cgit v1.2.3-24-g4f1b