From f0bcb3c9c41ba4a7236908e2997eb56109ad9592 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 10 Feb 2009 18:40:21 +0000 Subject: udpated xss_clean() in the security helper to pass $is_image instead of the deprecated $charset http://codeigniter.com/bug_tracker/bug/6706/ --- system/helpers/security_helper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'system/helpers/security_helper.php') 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); } } -- cgit v1.2.3-24-g4f1b