From 3e96a6ed0853866f7ace4fcbb9eb73221aec6d63 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 23 Feb 2016 13:48:20 +0000 Subject: [PATCH] Update messages git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2551 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- ipaddresses.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;