summaryrefslogtreecommitdiffstats
path: root/system/libraries/Upload.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2010-04-23 18:22:40 +0200
committerDerek Jones <derek.jones@ellislab.com>2010-04-23 18:22:40 +0200
commit5640a7158559f4521911444b50798a6a9536f38b (patch)
treedd25f6ed7be7afa635c067f4b2feda59c37f990d /system/libraries/Upload.php
parent68c685ec6ed077e0ba4e5628963ef3183bb0a4fa (diff)
ensured the security lib was loaded in a few calls to xss_clean() in other libraries. Fixes #35
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);
}