summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-03-03 19:57:57 +0100
committerMinteck <contact@minteck.org>2023-03-03 19:57:57 +0100
commit27e0f1f5b61a11a816b42bb9fc8c9fd392260ffe (patch)
tree5e9f7c306212e3c97c4d5ffac3072c9400520a7f /pages
parent29928887e733f3bc2c2baaf06dafd495a006753b (diff)
downloadpluralconnect-27e0f1f5b61a11a816b42bb9fc8c9fd392260ffe.tar.gz
pluralconnect-27e0f1f5b61a11a816b42bb9fc8c9fd392260ffe.tar.bz2
pluralconnect-27e0f1f5b61a11a816b42bb9fc8c9fd392260ffe.zip
Updated 5 files (automated)
Diffstat (limited to 'pages')
-rw-r--r--pages/metadata.inc2
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'])) {