From 257b18501e9180268b101f84bcb7488cbd476839 Mon Sep 17 00:00:00 2001 From: Jim Wigginton Date: Wed, 14 Dec 2011 13:36:31 +0000 Subject: [PATCH] - make setHash non case sensitive (thanks e1ven!) git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@191 21d32557-59b3-4da0-833f-c5933fad653e --- phpseclib/Crypt/Hash.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpseclib/Crypt/Hash.php b/phpseclib/Crypt/Hash.php index c7503ecb..5e9c55e4 100644 --- a/phpseclib/Crypt/Hash.php +++ b/phpseclib/Crypt/Hash.php @@ -183,6 +183,7 @@ class Crypt_Hash { */ function setHash($hash) { + $hash = strtolower($hash); switch ($hash) { case 'md5-96': case 'sha1-96':