From 95508f024c1c71b1013f07e873fe0288ee0d8d12 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 13 Feb 2023 11:20:24 +0100 Subject: [PATCH] wip #5725 @0.25 --- app/tools.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/tools.php b/app/tools.php index 0224aa5..5badbad 100644 --- a/app/tools.php +++ b/app/tools.php @@ -6,5 +6,9 @@ require_once __DIR__ . "/vendor/autoload.php"; $f = $_POST['function']; if (is_callable([Tools::class, $f])) { - die(Tools::$f($_POST)); -} \ No newline at end of file + $res = Tools::$f($_POST); + error_log($f . ' : ' . print_r($_POST) . ' -> ' . $res); + die($res); +} +error_log('unavailable function ' . $f); +die(0); \ No newline at end of file -- 2.39.5