Permalink
Browse files

Apply strtolower() to hash support check in do_hash()

  • Loading branch information...
1 parent 50bff7c commit 7eea3064af3be5dd0b526056211a510f90a40766 @narfbg narfbg committed Mar 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/helpers/security_helper.php
@@ -82,7 +82,7 @@ function sanitize_filename($filename)
{
function do_hash($str, $type = 'sha1')
{
- if ( ! in_array($type, hash_algos()))
+ if ( ! in_array(strtolower($type), hash_algos()))
{
$type = 'md5';
}

0 comments on commit 7eea306

Please sign in to comment.