From cab3e1813f71bddfe8f045772e5cb42e76a4d347 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 8 Jan 2014 14:51:56 +0200 Subject: A tiny improvement in CI_Upload::do_xss_clean() --- system/libraries/Upload.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'system') 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); } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b