From 27e0f1f5b61a11a816b42bb9fc8c9fd392260ffe Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 3 Mar 2023 19:57:57 +0100 Subject: Updated 5 files (automated) --- pages/metadata.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pages/metadata.inc') diff --git a/pages/metadata.inc b/pages/metadata.inc index db5589d..9faefef 100644 --- a/pages/metadata.inc +++ b/pages/metadata.inc @@ -137,6 +137,8 @@ if ($member === null) { if (isset($_GET["age"]) && is_numeric($_GET["age"])) { $toUpdate["birth"]["age"] = (int)$_GET["age"]; + } else if (isset($_GET["age"]) && preg_match("/^\d{1,2}-\d{1,2}$/", $_GET["age"]) === 1) { + $toUpdate["birth"]["age"] = $_GET["age"]; } if (isset($_GET["birth"]) && trim($_GET['birth']) !== "" && !!preg_match("/^\d{4}-\d{2}-\d{2}$/m", $_GET['birth'])) { -- cgit