summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortianhe1986 <w1s2j3229@163.com>2016-08-23 11:44:21 +0200
committertianhe1986 <w1s2j3229@163.com>2016-08-23 11:44:21 +0200
commit24ad2dd11ed66bafe3a8a9224b310d7e4b005446 (patch)
tree8f73f674f34abb1764eeb86aa3c732cc5fa73398
parent0397eec4c8bc931f33a254c54351ff54c4cd02a9 (diff)
Hash: processing algorithm name case-insensitively in hash_pbkdf2():
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
-rw-r--r--system/core/compat/hash.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/core/compat/hash.php b/system/core/compat/hash.php
index 6854e4c26..6d4a0c19a 100644
--- a/system/core/compat/hash.php
+++ b/system/core/compat/hash.php
@@ -119,6 +119,7 @@ if ( ! function_exists('hash_pbkdf2'))
*/
function hash_pbkdf2($algo, $password, $salt, $iterations, $length = 0, $raw_output = FALSE)
{
+ $algo = strtolower($algo);
if ( ! in_array($algo, hash_algos(), TRUE))
{
trigger_error('hash_pbkdf2(): Unknown hashing algorithm: '.$algo, E_USER_WARNING);