mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fixed IPv6 validation special case: single colon
IPv6 parsing was incorrectly evaluating ':' as a valid IPv6 address. https://fedorahosted.org/freeipa/ticket/1466
This commit is contained in:
committed by
Endi S. Dewata
parent
c7ae0c20db
commit
ceee08faa1
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user