From 4ac0e6fab7909fe361e464b4152e1f05e810c4cf Mon Sep 17 00:00:00 2001 From: MatMasIt Date: Mon, 31 Jan 2022 10:31:08 +0100 Subject: [PATCH] Fixed data appending --- server/up.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/up.php b/server/up.php index a1fc57c..794906c 100644 --- a/server/up.php +++ b/server/up.php @@ -20,7 +20,7 @@ $nonce = md5($headers["X-Nonce"]); $intent = $headers["X-Intent"]; switch($intent){ case "W": - file_put_contents("data/".$nonce.".csv",FILE_APPEND); + file_put_contents("data/".$nonce.".csv",$f,FILE_APPEND); break; case "C": rename("data/".$nonce.".csv","data/current.csv");