Commit 48d463cf authored by Andrew Fenn's avatar Andrew Fenn Committed by Florent Morselli
Browse files

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.
No related merge requests found
Showing with 1 addition and 0 deletions
+1 -0
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment