diff --git a/lib/Controller/KeyController.php b/lib/Controller/KeyController.php index 038f558..4407c2f 100644 --- a/lib/Controller/KeyController.php +++ b/lib/Controller/KeyController.php @@ -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; }