From 34c46a08c606d9d496d8918a86b65ff42808b1b0 Mon Sep 17 00:00:00 2001 From: conory Date: Mon, 21 Feb 2022 21:11:42 +0900 Subject: [PATCH] Correct the URL regex --- classes/validator/Validator.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/validator/Validator.class.php b/classes/validator/Validator.class.php index 7736b30a8..f2a09f2b7 100644 --- a/classes/validator/Validator.class.php +++ b/classes/validator/Validator.class.php @@ -88,7 +88,7 @@ class Validator $this->addRule(array( 'email' => '/^[\w-]+((?:\.|\+|\~)[\w-]+)*@[\w-]+(\.[\w-]+)+$/', 'userid' => '/^[a-z]+[\w-]*[a-z0-9_]+$/i', - 'url' => '/^https?:\/\/[^\\\\/]+!', + 'url' => '/^https?:\/\//i', 'alpha' => '/^[a-z]*$/i', 'alpha_number' => '/^[a-z][a-z0-9_]*$/i', 'number' => '/^(?:[1-9]\\d*|0)$/',