diff options
author | Andrey Andreev <narf@devilix.net> | 2016-12-01 14:12:35 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-12-01 14:12:35 +0100 |
commit | 0c84ef9a33d18d758e36447fd18a240a458ae2bc (patch) | |
tree | eadf541f24b57b21af61ba910e51460914c84c33 /system/helpers | |
parent | ecc9a5f2102d8221f9783fd77d8a4b7bb03a3e4a (diff) |
Remove previously deprecated Security Helper function do_hash()
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/security_helper.php | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/system/helpers/security_helper.php b/system/helpers/security_helper.php index 4eb63883d..048f06b68 100644 --- a/system/helpers/security_helper.php +++ b/system/helpers/security_helper.php @@ -80,30 +80,6 @@ if ( ! function_exists('sanitize_filename')) } } -// -------------------------------------------------------------------- - -if ( ! function_exists('do_hash')) -{ - /** - * Hash encode a string - * - * @todo Remove in version 3.1+. - * @deprecated 3.0.0 Use PHP's native hash() instead. - * @param string $str - * @param string $type = 'sha1' - * @return string - */ - function do_hash($str, $type = 'sha1') - { - if ( ! in_array(strtolower($type), hash_algos())) - { - $type = 'md5'; - } - - return hash($type, $str); - } -} - // ------------------------------------------------------------------------ if ( ! function_exists('strip_image_tags')) |