Security Helper
The Security Helper file contains security related functions.
Loading this Helper
This helper is loaded using the following code:
helper('security');
Available Functions
The following functions are available:
-
sanitize_filename($filename)
-
Parameters: - $filename (string) – Filename
Returns: Sanitized file name
Return type: string
Provides protection against directory traversal.
This function is an alias for
\CodeIgniter\Security::sanitize_filename()
. For more info, please see the Security Library documentation.