Skip to content

Commit 3e45d87

Browse files
author
Jean-François Hivert
committed
Minor fix about IPv6 filter
1 parent 3dbbc3f commit 3e45d87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: classes/tools.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public static function is($model, $value)
9393
case 'ipv4':
9494
return (filter_var($value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false);
9595
case 'ipv6':
96-
return (filter_var($value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false);
96+
return (filter_var($value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) !== false);
9797
default:
9898
throw new Exception('Test impossible pour ['.$model.']', E_USER_ERROR);
9999
}

0 commit comments

Comments
 (0)