From adae86e950bf26dcea627572eacc00c7245a4caf Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 1 Feb 2024 10:58:43 +0100 Subject: [PATCH] locator regex add 'i' option --- install/includes/core_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/includes/core_class.php b/install/includes/core_class.php index 7ca70de38..f35f8ba17 100644 --- a/install/includes/core_class.php +++ b/install/includes/core_class.php @@ -66,7 +66,7 @@ class Core // Validate Locator if (isset($_POST['userlocator']) && !empty($_POST['userlocator'])) { $locator = $_POST['userlocator']; - if (preg_match('/^[A-R]{2}[0-9]{2}[A-X]{2}$/', $locator)) { + if (preg_match('/^[A-R]{2}[0-9]{2}[A-X]{2}$/i', $locator)) { $counter++; } else { $errors[] = "Invalid Maidenhead Locator format.";