summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-01-08 13:51:56 +0100
committerAndrey Andreev <narf@devilix.net>2014-01-08 13:51:56 +0100
commitcab3e1813f71bddfe8f045772e5cb42e76a4d347 (patch)
treed19f53a51fc88d509bf1b9a847f95bd3057b04ea
parente417f0439440246a66e02296da701e84c6c37866 (diff)
A tiny improvement in CI_Upload::do_xss_clean()
-rw-r--r--system/libraries/Upload.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 7989d113e..67a65501e 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -1081,8 +1081,7 @@ class CI_Upload {
return FALSE;
}
- $CI =& get_instance();
- return $CI->security->xss_clean($data, TRUE);
+ return get_instance()->security->xss_clean($data, TRUE);
}
// --------------------------------------------------------------------