mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
locator regex add 'i' option
This commit is contained in:
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user