From 6700c089da23a9f38171fceddb3480ce502f224d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Sat, 26 Mar 2016 09:58:05 +0100 Subject: [PATCH] fixup! add: additional check for ip-addresses as domains --- src/org/cacert/gigi/dbObjects/Domain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/cacert/gigi/dbObjects/Domain.java b/src/org/cacert/gigi/dbObjects/Domain.java index 19594d7d..55ed0f59 100644 --- a/src/org/cacert/gigi/dbObjects/Domain.java +++ b/src/org/cacert/gigi/dbObjects/Domain.java @@ -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. -- 2.39.2