summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r--system/libraries/Form_validation.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index bb70f0f7f..73cb6b853 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1254,7 +1254,12 @@ class CI_Form_validation {
*/
function xss_clean($str)
{
- return $this->CI->input->xss_clean($str);
+ if ( ! is_object($this->CI->security))
+ {
+ $this->CI->load('security');
+ }
+
+ return $this->CI->security->xss_clean($str);
}
// --------------------------------------------------------------------