adding sanitize_filename() into the security helper
diff --git a/system/helpers/security_helper.php b/system/helpers/security_helper.php
index 654cfd1..63f0e9c 100644
--- a/system/helpers/security_helper.php
+++ b/system/helpers/security_helper.php
@@ -44,6 +44,24 @@
}
}
+// ------------------------------------------------------------------------
+
+/**
+ * Sanitize Filename
+ *
+ * @access public
+ * @param string
+ * @return string
+ */
+if ( ! function_exists('sanitize_filename'))
+{
+ function sanitize_filename($filename)
+ {
+ $CI =& get_instance();
+ return $CI->security->sanitize_filename($filename);
+ }
+}
+
// --------------------------------------------------------------------
/**