diff --git a/ipaddresses.php b/ipaddresses.php index 2df9730..03dfa2f 100644 --- a/ipaddresses.php +++ b/ipaddresses.php @@ -22,7 +22,7 @@ class ipaddresses public function validIPv4Address ($ip) { if (!is_string ($ip) || $ip === "") - throw new \Exception (dgettext("domframework", "Invalid IP address"), 500); + throw new \Exception (dgettext("domframework", "Invalid IPv4 address"), 500); $rc = filter_var ($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4); if ($rc ===FALSE) return FALSE; @@ -33,7 +33,7 @@ class ipaddresses public function validIPv6Address ($ip) { if (!is_string ($ip) || $ip === "") - throw new \Exception (dgettext("domframework", "Invalid IP address"), 500); + throw new \Exception (dgettext("domframework", "Invalid IPv6 address"), 500); $rc = filter_var ($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6); if ($rc ===FALSE) return FALSE;