format_hash(): format hashes to lowercase

This commit is contained in:
Richard Kuhnt committed 2018-07-29 21:36:56 +02:00
1 parent 88040972a3
commit 5d56f8ff57
1 file changed
+1
+1
View File
@@ -560,6 +560,7 @@ function substitute($entity, [Hashtable] $params) {
}
function format_hash([String] $hash) {
$hash = $hash.toLower()
switch ($hash.Length)
{
32 { $hash = "md5:$hash" } # md5