]> WPIA git - gigi.git/commitdiff
fixup! add: additional check for ip-addresses as domains
authorFelix Dörre <felix@dogcraft.de>
Sat, 26 Mar 2016 08:58:05 +0000 (09:58 +0100)
committerFelix Dörre <felix@dogcraft.de>
Thu, 7 Apr 2016 11:52:05 +0000 (13:52 +0200)
src/org/cacert/gigi/dbObjects/Domain.java

index 19594d7d3678d95ef94f6250231f7a76cd28cd0d..55ed0f591f61a8769d85cd61cf6ad14aa116de71 100644 (file)
@@ -73,7 +73,7 @@ public class Domain implements IdCachable, Verifyable {
         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.