summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-19 11:58:45 +0100
committerAndrey Andreev <narf@bofh.bg>2012-03-19 11:58:45 +0100
commit7eea3064af3be5dd0b526056211a510f90a40766 (patch)
treecd4a46d5c6b33d48021b87485443529d151b79e8 /system
parent50bff7c06c177f580db956ef5df9a490141de5f6 (diff)
Apply strtolower() to hash support check in do_hash()
Diffstat (limited to 'system')
-rw-r--r--system/helpers/security_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/security_helper.php b/system/helpers/security_helper.php
index 2f3df7834..8c7adea46 100644
--- a/system/helpers/security_helper.php
+++ b/system/helpers/security_helper.php
@@ -82,7 +82,7 @@ if ( ! function_exists('do_hash'))
{
function do_hash($str, $type = 'sha1')
{
- if ( ! in_array($type, hash_algos()))
+ if ( ! in_array(strtolower($type), hash_algos()))
{
$type = 'md5';
}