From b0c4e8ce45c1bc40cd6fe25f5e1c56cafc61a920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Thu, 22 Jun 2023 22:23:00 +0200 Subject: fixes some eval stuff --- "prog/\305\276/index.php" | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'prog/ΕΎ/index.php') diff --git "a/prog/\305\276/index.php" "b/prog/\305\276/index.php" index 5b46ce1..dc2a2f5 100644 --- "a/prog/\305\276/index.php" +++ "b/prog/\305\276/index.php" @@ -299,11 +299,12 @@ switch ($_REQUEST["e"] . "-" . $_SERVER["REQUEST_METHOD"]) { @$balances[$tx->recipient] += $tx->amount; } response(200); - foreach ($balances as $key => $value) // do not trust balances provided by this API, since they + foreach ($balances as $key => $value) { // do not trust balances provided by this API, since they $packed = pack("q", $value); // are cast to machine dependent int by php if (pack("Q", 123) === pack("P", 123)) // machine is little endian $packed = strrev($packed); echo $key . $packed; + } break; default: response(400, "unknown endpoint or method not allowed", TEXT); -- cgit v1.2.3