locator regex add 'i' option

This commit is contained in:
HB9HIL
2024-02-01 10:58:43 +01:00
parent 1fcd089d71
commit adae86e950

View File

@@ -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.";