From 02024fdcc72837e927e801e5271c5e960a8768c3 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 15 Aug 2024 15:08:52 +0700 Subject: [PATCH] strtolower keywords --- system/autoload/Validator.php | 2 +- system/lan/english.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/system/autoload/Validator.php b/system/autoload/Validator.php index c435fe95..a5e02091 100644 --- a/system/autoload/Validator.php +++ b/system/autoload/Validator.php @@ -325,6 +325,6 @@ class Validator public static function containsKeyword($string, $keywords = ['mikrotik', 'hotspot', 'pppoe', 'radius', 'dummy']) { $regex = '/' . implode('|', $keywords) . '/i'; - return preg_match($regex, $string); + return preg_match($regex, strtolower($string)); } } diff --git a/system/lan/english.json b/system/lan/english.json index 403a2b44..0ceb54a5 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -722,5 +722,6 @@ "in_here_too_": "in here too.", "Empty_this_to_use_internal_mail___PHP": "Empty this to use internal mail() PHP", "Mail_Reply_To": "Mail Reply To", - "Customer_will_reply_email_to_this_address__empty_if_you_want_to_use_From_Address": "Customer will reply email to this address, empty if you want to use From Address" + "Customer_will_reply_email_to_this_address__empty_if_you_want_to_use_From_Address": "Customer will reply email to this address, empty if you want to use From Address", + "You_will_get_Payment_and_Error_notification": "You will get Payment and Error notification" } \ No newline at end of file