From 48d463cf909320399fe08eab2e1cd18d899d5068 Mon Sep 17 00:00:00 2001
From: Andrew Fenn <andrewfenn@gmail.com>
Date: Mon, 18 Mar 2019 17:08:51 +0700
Subject: [PATCH] Fix issue of case sensitive algorithms (#129)

There is an issue where if loading a provisioning URL with the algorithm in uppercase that an exception is thrown even though the algorithm is valid. This one liner fixes the issue by lowercasing the algorithm name before checking and setting.
---
 src/ParameterTrait.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ParameterTrait.php b/src/ParameterTrait.php
index b2d59bb..2c2a9be 100644
--- a/src/ParameterTrait.php
+++ b/src/ParameterTrait.php
@@ -212,6 +212,7 @@ trait ParameterTrait
                 return $value;
             },
             'algorithm' => function ($value) {
+                $value = strtolower($value);
                 Assertion::inArray($value, hash_algos(), sprintf('The "%s" digest is not supported.', $value));
 
                 return $value;
-- 
GitLab