From 5e9dfa62f1bd0ae077d68a8487ef7b20c23e2abb Mon Sep 17 00:00:00 2001 From: Sergey <31823239+SeAnSolovev@users.noreply.github.com> Date: Sun, 5 Mar 2023 05:18:07 +0300 Subject: [PATCH] Update system.php --- system/library/system.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/library/system.php b/system/library/system.php index 1395217..875946d 100644 --- a/system/library/system.php +++ b/system/library/system.php @@ -268,7 +268,7 @@ return false; case 'ip': - if(!preg_match("/^(25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[0-9]{2}|[0-9])(\.(25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[0-9]{2}|[0-9])){3}$/", $val)) + if(!preg_match('/^(25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[0-9]{2}|[0-9])(\.(25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[0-9]{2}|[0-9])){3}$/', $val)) return true; return false;