summaryrefslogtreecommitdiff
path: root/pages/metadata.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/metadata.inc')
-rw-r--r--pages/metadata.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/pages/metadata.inc b/pages/metadata.inc
index ffe2397..f3e48d7 100644
--- a/pages/metadata.inc
+++ b/pages/metadata.inc
@@ -67,6 +67,10 @@ if ($member === null) {
$toUpdate["bitset"] = (int)$_GET["bitset"];
}
+ if (isset($_GET["interest"])) {
+ $toUpdate["interest"] = strip_tags($_GET["interest"]);
+ }
+
if (isset($_GET["marefriends"])) {
$toUpdate["marefriends"] = array_values(array_filter(array_map(function ($i) { return trim($i); }, explode(",", $_GET["marefriends"])), function ($i) {
return !!preg_match("/^(ynmuc|gdapd)\/[a-z]{5}$/m", $i);
@@ -126,6 +130,7 @@ if ($member === null) {
"heat" => $metadata["heat"] ?? null,
"birth" => $metadata["birth"] ?? ["age" => 0, "date" => "01-01", "year" => null],
"code" => $metadata["code"] ?? null,
+ "interest" => $metadata["interest"] ?? null
];
file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $memberID . ".json", json_encode($metadata));