summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-02-10 19:40:21 +0100
committerDerek Jones <derek.jones@ellislab.com>2009-02-10 19:40:21 +0100
commitf0bcb3c9c41ba4a7236908e2997eb56109ad9592 (patch)
treefad1ecb280ed8940b7159c02485d75500a88c1c1 /system
parenta45e761adedf682aed63aba88730f4929eefc159 (diff)
udpated xss_clean() in the security helper to pass $is_image instead of the deprecated $charset
http://codeigniter.com/bug_tracker/bug/6706/
Diffstat (limited to 'system')
-rw-r--r--system/helpers/security_helper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/helpers/security_helper.php b/system/helpers/security_helper.php
index 0e2ba788d..4dbbf728a 100644
--- a/system/helpers/security_helper.php
+++ b/system/helpers/security_helper.php
@@ -32,15 +32,15 @@
*
* @access public
* @param string
- * @param string the character set of your data
+ * @param bool whether or not the content is an image file
* @return string
*/
if ( ! function_exists('xss_clean'))
{
- function xss_clean($str, $charset = 'ISO-8859-1')
+ function xss_clean($str, $is_image = FALSE)
{
$CI =& get_instance();
- return $CI->input->xss_clean($str, $charset);
+ return $CI->input->xss_clean($str, $is_image);
}
}