fixes #15
Change-Id: I8928aa862393ef7977e91393ae8d91667e790fe8
}
- public static final int CURRENT_SCHEMA_VERSION = 10;
+ public static final int CURRENT_SCHEMA_VERSION = 11;
public static final int CONNECTION_TIMEOUT = 24 * 60 * 60;
--- /dev/null
+UPDATE "emails" SET "email" = lower("email");
+UPDATE "domains" SET "domain" = lower("domain");
}
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;
}
public EmailAddress(User owner, String address, Locale mailLocale) throws GigiApiException {
+ address = address.toLowerCase();
if ( !EmailProvider.MAIL.matcher(address).matches()) {
throw new IllegalArgumentException("Invalid email.");
}