Commit cbfc7b7e authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

is_ipaddrv6() also validates subnets, closes https://github.com/opnsense/core/issues/1579

(cherry picked from commit cd3a9dff)
parent 88855185
......@@ -392,6 +392,8 @@ function is_ipaddrv6($ipaddr)
}
if (strpos($ipaddr, ":") === false) {
return false;
} elseif (strpos($ipaddr, "/") !== false) {
return false; // subnet is not an address
} else {
return Net_IPv6::checkIPv6($ipaddr);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment