X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=src%2Forg%2Fcacert%2Fgigi%2FdbObjects%2FDomain.java;h=fa6a6d0e10240b75b37d205c0a33e7645d02980f;hb=2f50dbb24105e6345329b8e9ecb5ef4d67ab2a8c;hp=55ed0f591f61a8769d85cd61cf6ad14aa116de71;hpb=6700c089da23a9f38171fceddb3480ce502f224d;p=gigi.git diff --git a/src/org/cacert/gigi/dbObjects/Domain.java b/src/org/cacert/gigi/dbObjects/Domain.java index 55ed0f59..fa6a6d0e 100644 --- a/src/org/cacert/gigi/dbObjects/Domain.java +++ b/src/org/cacert/gigi/dbObjects/Domain.java @@ -51,6 +51,7 @@ public class Domain implements IdCachable, Verifyable { } public Domain(User actor, CertificateOwner owner, String suffix) throws GigiApiException { + suffix = suffix.toLowerCase(); synchronized (Domain.class) { checkCertifyableDomain(suffix, actor.isInGroup(Group.CODESIGNING)); this.owner = owner; @@ -129,7 +130,7 @@ public class Domain implements IdCachable, Verifyable { boolean existed = rs.next(); rs.close(); if (existed) { - throw new GigiApiException("Domain could not be inserted. Domain is already valid."); + throw new GigiApiException("Domain could not be inserted. Domain is already known to the system."); } } }