fix: make sure that single name is accepted
authorINOPIAE <m.maengel@inopiae.de>
Sun, 14 Aug 2016 11:43:18 +0000 (13:43 +0200)
committerFelix Dörre <felix@dogcraft.de>
Tue, 16 Aug 2016 23:24:49 +0000 (01:24 +0200)
Change-Id: I30dca6204f6d7d7eef12c744d3c32a83c9ef015c

src/org/cacert/gigi/output/NameInput.java

index 22eadf0..1141544 100644 (file)
@@ -48,7 +48,7 @@ public class NameInput implements Outputable {
         if (name == null) {
             name = "";
         }
-        if ( !"western".equals(scheme) && !"single".equals("scheme")) {
+        if ( !"western".equals(scheme) && !"single".equals(scheme)) {
             throw new GigiApiException("Invalid name type.");
         }
         if (name.contains(" ")) {