diff options
author | Andrey Andreev <narf@devilix.net> | 2016-08-23 13:07:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-23 13:07:11 +0200 |
commit | be4541dabf8a9d6939d2ee33c1cb151c4ae3d196 (patch) | |
tree | 4392e2553cea1ab58c358c5d1263c33b223bc1dd /system/core | |
parent | 0397eec4c8bc931f33a254c54351ff54c4cd02a9 (diff) | |
parent | 1de09516123b4ca1caeef667d58261105d854ffe (diff) |
Merge pull request #4781 from tianhe1986/develop_hash_pbkdf2
Hash: processing algorithm name case-insensitively in hash_pbkdf2()
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/compat/hash.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/compat/hash.php b/system/core/compat/hash.php index 6854e4c26..d567d0f80 100644 --- a/system/core/compat/hash.php +++ b/system/core/compat/hash.php @@ -119,7 +119,7 @@ if ( ! function_exists('hash_pbkdf2')) */ function hash_pbkdf2($algo, $password, $salt, $iterations, $length = 0, $raw_output = FALSE) { - if ( ! in_array($algo, hash_algos(), TRUE)) + if ( ! in_array(strtolower($algo), hash_algos(), TRUE)) { trigger_error('hash_pbkdf2(): Unknown hashing algorithm: '.$algo, E_USER_WARNING); return FALSE; |