Property | Type | Description | |
---|---|---|---|
$charset | string | Will be overridden by the constructor. | |
$filename_bad_chars | array | List of sanitize filename strings |
Property | Type | Description | |
---|---|---|---|
$_csrf_cookie_name | string | Cookie name for Cross Site Request Forgery protection cookie. | |
$_csrf_expire | integer | Expiration time for Cross Site Request Forgery protection cookie. Defaults to two hours (in seconds). | |
$_csrf_hash | string | Random hash for Cross Site Request Forgery protection cookie | |
$_csrf_token_name | string | Token name for Cross Site Request Forgery protection cookie. | |
$_never_allowed_regex | array | List of never allowed regex replacements | |
$_never_allowed_str | array | List of never allowed strings | |
$_xss_hash | string | Random Hash for protecting URLs. |
Method | Description | |
---|---|---|
__construct ( ) : void | Class constructor | |
csrf_set_cookie ( ) : CI_Security | CSRF Set Cookie | |
csrf_show_error ( ) : void | Show CSRF Error | |
csrf_verify ( ) : CI_Security | CSRF Verify | |
entity_decode ( string $str, string $charset = NULL ) : string | HTML Entities Decode | |
get_csrf_hash ( ) : string | Get CSRF Hash | |
get_csrf_token_name ( ) : string | Get CSRF Token Name | |
get_random_bytes ( integer $length ) : string | Get random bytes | |
sanitize_filename ( string $str, boolean $relative_path = FALSE ) : string | Sanitize Filename | |
strip_image_tags ( string $str ) : string | Strip Image Tags | |
xss_clean ( string | string[] $str, boolean $is_image = FALSE ) : string | XSS Clean | |
xss_hash ( ) : string | XSS Hash |
Method | Description | |
---|---|---|
_compact_exploded_words ( array $matches ) : string | Compact Exploded Words | |
_convert_attribute ( array $match ) : string | Attribute Conversion | |
_csrf_set_hash ( ) : string | Set CSRF Hash and Cookie | |
_decode_entity ( array $match ) : string | HTML Entity Decode Callback | |
_do_never_allowed ( $str ) : string | Do Never Allowed | |
_filter_attributes ( string $str ) : string | Filter Attributes | |
_js_img_removal ( array $match ) : string | JS Image Removal | |
_js_link_removal ( array $match ) : string | JS Link Removal | |
_sanitize_naughty_html ( array $matches ) : string | Sanitize Naughty HTML |
protected _compact_exploded_words ( array $matches ) : string | ||
$matches | array | |
return | string |
protected _convert_attribute ( array $match ) : string | ||
$match | array | |
return | string |
protected _csrf_set_hash ( ) : string | ||
return | string |
protected _decode_entity ( array $match ) : string | ||
$match | array | |
return | string |
protected _do_never_allowed ( $str ) : string | ||
return | string |
protected _filter_attributes ( string $str ) : string | ||
$str | string | |
return | string |
protected _js_img_removal ( array $match ) : string | ||
$match | array | |
return | string |
protected _js_link_removal ( array $match ) : string | ||
$match | array | |
return | string |
protected _sanitize_naughty_html ( array $matches ) : string | ||
$matches | array | |
return | string |
public csrf_set_cookie ( ) : CI_Security | ||
return | CI_Security |
public get_csrf_hash ( ) : string | ||
return | string | CSRF hash |
public get_csrf_token_name ( ) : string | ||
return | string | CSRF token name |
public get_random_bytes ( integer $length ) : string | ||
$length | integer | Output length |
return | string |
public strip_image_tags ( string $str ) : string | ||
$str | string | |
return | string |
protected string $_csrf_cookie_name | ||
return | string |
protected int $_csrf_expire | ||
return | integer |
protected string $_csrf_hash | ||
return | string |
protected string $_csrf_token_name | ||
return | string |
protected array $_never_allowed_regex | ||
return | array |
protected array $_never_allowed_str | ||
return | array |
protected string $_xss_hash | ||
return | string |
public string $charset | ||
return | string |
public array $filename_bad_chars | ||
return | array |