ZF-5187: Zend_File_Transfer_Adapter_Abstract::getHash() doesn't recognise hashing algos
Description
On line 1067 in the file Zend/File/Transfer/Adapter/Abstract.php the method checks, if the hashing algorithm is present on the system by doing a lookup on "hash_algos()".
It does this lookup by the array key (a number) and not by its value (which is the name of the hash).
I think this method never works this way. The line should be something like.
if (!(in_array($hash, $algorithms))) {
Tell me if I'm wrong.
Comments
Posted by Thomas Weidner (thomas) on 2008-12-09T01:21:18.000+0000
Fixed with r13111
Posted by Mathias Seiler (broedel.org) on 2008-12-09T01:24:33.000+0000
Thanks man :)