match mail addresses case insensitively for checking confirmed uids

This commit is contained in:
Vincent Breitmoser
2017-01-10 23:30:44 +01:00
parent 28875ae2ee
commit d389ec21e2

View File

@@ -154,7 +154,7 @@ public class OpenPgpSignatureResultBuilder {
private static boolean userIdListContainsAddress(String senderAddress, ArrayList<String> confirmedUserIds) {
for (String rawUserId : confirmedUserIds) {
UserId userId = OpenPgpUtils.splitUserId(rawUserId);
if (senderAddress.equals(userId.email)) {
if (senderAddress.equalsIgnoreCase(userId.email)) {
return true;
}
}