diff options
Diffstat (limited to 'pages/metadata.inc')
-rw-r--r-- | pages/metadata.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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'])) { |