From e3fdd169650b98d828cc459e04de8afef5c021cd Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Jul 07 2016 13:30:03 +0000 Subject: Ticket 48823 - admin-console - Add IPv6 support Description: Allow all the characters that make up IPv6 addresses https://fedorahosted.org/389/ticket/48823 Reviewed by: nhosoi(Thanks!) --- diff --git a/src/com/netscape/management/admserv/config/FilteredInputDocument.java b/src/com/netscape/management/admserv/config/FilteredInputDocument.java index fa74281..81ba40d 100644 --- a/src/com/netscape/management/admserv/config/FilteredInputDocument.java +++ b/src/com/netscape/management/admserv/config/FilteredInputDocument.java @@ -1,11 +1,11 @@ /** BEGIN COPYRIGHT BLOCK * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. - * Copyright (C) 2005 Red Hat, Inc. + * Copyright (C) 2016 Red Hat, Inc. * All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; version 2 + * as published by the Free Software Foundation; version 3 * of the License. * * This program is distributed in the hope that it will be useful, @@ -21,9 +21,9 @@ package com.netscape.management.admserv.config; /** - * A text model (document) that restrects JTextField charaters to a specified character set. It + * A text model (document) that restricts JTextField characters to a specified character set. It * can be used to create, for instance, digit-only text fields, alphanumeric-only text fields, - * etc. If a non allowed character is entered by the user, the charachter does not get echoed back + * etc. If a non allowed character is entered by the user, the character does not get echoed back * to the screen and the Console beeps. * * Usage example for digits only text field: @@ -42,7 +42,7 @@ import javax.swing.text.*; public class FilteredInputDocument extends PlainDocument { public static final String DIGITS = "01234567890"; - public static final String IPADDRESS = "01234567890."; + public static final String IPADDRESS = "01234567890ABCDEFabcdef.:"; String _allowSet;