Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 7eea3064af3be5dd0b526056211a510f90a40766 1 parent 50bff7c
@narfbg narfbg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  system/helpers/security_helper.php
View
2  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';
}
Please sign in to comment.
Something went wrong with that request. Please try again.