summaryrefslogtreecommitdiff
path: root/admin/approve/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/approve/index.php')
-rw-r--r--admin/approve/index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/approve/index.php b/admin/approve/index.php
index 010aba4..fdca968 100644
--- a/admin/approve/index.php
+++ b/admin/approve/index.php
@@ -19,6 +19,11 @@ if (isset($id)) {
$request = json_decode(pf_utf8_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/requests/" . $id . ".json")), true);
+if (isset($_GET["md5"]) && $_GET["md5"] !== md5(json_encode($request))) {
+ header("Location: /admin/requests/?modified");
+ die();
+}
+
if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $request["author"] . ".json")) {
while (trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $request["author"] . ".json")) === "") {}