Skip to content

Commit

Permalink
Merge pull request #4 from Luticus/master
Browse files Browse the repository at this point in the history
added case insensitivity to the uploaduserkey
  • Loading branch information
tacruc committed Jun 22, 2020
2 parents d51889c + db0e434 commit b0480f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/KeyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function uploadUserKey($keydata) {
$keyinfo = $this->gpg->keyinfo($fingerprint, $this->userId);
$key_for_email = false;
foreach ($keyinfo[0]['uids'] as $uid) {
if ($uid['email'] === $email) {
if (strtolower($uid['email']) === strtolower($email)) {
$key_for_email = true;
break;
}
Expand Down

0 comments on commit b0480f2

Please sign in to comment.