if ( !s.equals(publicSuffix)) {
throw new GigiApiException("You may only register a domain with exactly one lable before the public suffix.");
}
- if (("." + s).matches("(.[0-9]*)*")) {
+ if (("." + s).matches("(\\.[0-9]*)*")) {
// This is not reached because we currently have no TLD that is
// numbers only. But who knows..
// Better safe than sorry.
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.");
}
}
}