Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Only strlower the scope
Browse files Browse the repository at this point in the history
The hash is already guaranteed to be lowercase
  • Loading branch information
tvdijen committed Apr 5, 2022
1 parent 4c7d7e4 commit 1423cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Auth/Process/PairwiseID.php
Expand Up @@ -89,7 +89,7 @@ public function process(array &$state): void
$salt = $this->configUtils->getSecretSalt();
$hash = hash('sha256', $salt . '|' . $userID . '|' . $sp_entityid, false);

$value = strtolower($hash . '@' . $scope);
$value = $hash . '@' . strtolower($scope);
$this->validateGeneratedIdentifier($value);

$state['Attributes'][Constants::ATTR_PAIRWISE_ID] = [$value];
Expand Down

0 comments on commit 1423cf5

Please sign in to comment.