summaryrefslogtreecommitdiffstats
path: root/system/libraries/Upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Upload.php')
-rw-r--r--system/libraries/Upload.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 3227c3747..d7cf236f8 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -854,7 +854,12 @@ class CI_Upload {
}
$CI =& get_instance();
-
+
+ if ( ! is_object($CI->security))
+ {
+ $CI->load('security');
+ }
+
return $CI->security->xss_clean($data, TRUE);
}