diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-01-03 09:37:17 +0100 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2012-01-03 21:28:53 -0600 |
commit | ceee08faa182af9cc24d16ee217d71a5d163775d (patch) | |
tree | a0d6138f47da597c74f62058209d8d39575611fb /install/ui/net.js | |
parent | c7ae0c20db86aeace6224425f3ccf7e4726d6b46 (diff) | |
download | freeipa.git-ceee08faa182af9cc24d16ee217d71a5d163775d.tar.gz freeipa.git-ceee08faa182af9cc24d16ee217d71a5d163775d.tar.xz freeipa.git-ceee08faa182af9cc24d16ee217d71a5d163775d.zip |
Fixed IPv6 validation special case: single colon
IPv6 parsing was incorrectly evaluating ':' as a valid IPv6 address.
https://fedorahosted.org/freeipa/ticket/1466
Diffstat (limited to 'install/ui/net.js')
-rw-r--r-- | install/ui/net.js | 5 |
1 files changed, 5 insertions, 0 deletions
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<that.parts.length; i++) { var part = that.parts[i]; |