commit | 7eea3064af3be5dd0b526056211a510f90a40766 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Mon Mar 19 12:58:45 2012 +0200 |
committer | Andrey Andreev <narf@bofh.bg> | Mon Mar 19 12:58:45 2012 +0200 |
tree | cd4a46d5c6b33d48021b87485443529d151b79e8 | |
parent | 50bff7c06c177f580db956ef5df9a490141de5f6 [diff] [blame] |
Apply strtolower() to hash support check in do_hash()
diff --git a/system/helpers/security_helper.php b/system/helpers/security_helper.php index 2f3df78..8c7adea 100644 --- a/system/helpers/security_helper.php +++ b/system/helpers/security_helper.php
@@ -82,7 +82,7 @@ { function do_hash($str, $type = 'sha1') { - if ( ! in_array($type, hash_algos())) + if ( ! in_array(strtolower($type), hash_algos())) { $type = 'md5'; }