2
0
Просмотр исходного кода

Return result from Zend_Crypt::hash() even if no supported algorithm to allow for alternative call - fixes ZF-10545

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23089 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic 15 лет назад
Родитель
Сommit
932ee9a626
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      library/Zend/Crypt.php

+ 2 - 1
library/Zend/Crypt.php

@@ -87,6 +87,7 @@ class Zend_Crypt
         self::_detectHashSupport($algorithm);
         $supportedMethod = '_digest' . ucfirst(self::$_type);
         $result = self::$supportedMethod($algorithm, $data, $binaryOutput);
+        return $result;
     }
 
     /**
@@ -164,4 +165,4 @@ class Zend_Crypt
         return openssl_digest($data, $algorithm, $binaryOutput);
     }
 
-}
+}