From ceee08faa182af9cc24d16ee217d71a5d163775d Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 3 Jan 2012 09:37:17 +0100 Subject: Fixed IPv6 validation special case: single colon IPv6 parsing was incorrectly evaluating ':' as a valid IPv6 address. https://fedorahosted.org/freeipa/ticket/1466 --- install/ui/net.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'install/ui/net.js') diff --git a/install/ui/net.js b/install/ui/net.js index 6b4b20cf..9eba6dc7 100644 --- a/install/ui/net.js +++ b/install/ui/net.js @@ -125,6 +125,11 @@ NET.ip_address = function(spec) { var i; + //usecases like ':' + if (that.parts.length <= 2) { + return that.set_error('invalid format'); + } + for (i=0; i