support modify personal attendance card

This commit is contained in:
xiaomlove
2022-05-29 15:19:16 +08:00
parent cf7f2af06e
commit 36a1f83d7d
40 changed files with 289 additions and 48 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ else
if ($ip)
{
$regex = "/^(((1?\d{1,2})|(2[0-4]\d)|(25[0-5]))(\.\b|$)){4}$/";
if (!preg_match($regex, $ip))
if (!filter_var($ip, FILTER_VALIDATE_IP))
{
stderr($lang_ipsearch['std_error'], $lang_ipsearch['std_invalid_ip']);
}