From 6dd1b248f7960421221fcc93fd2ed2951c301cd4 Mon Sep 17 00:00:00 2001 From: Rey5 Date: Sun, 7 May 2023 09:07:15 +0800 Subject: [PATCH] simplify no action output --- public/ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/ajax.php b/public/ajax.php index 86bf9bb4..ff2073e6 100644 --- a/public/ajax.php +++ b/public/ajax.php @@ -160,7 +160,7 @@ try { $result = $class::$action($params); exit(json_encode(success($result))); } else { - do_log('hack attempt '.print_r($CURUSER, true), 'error'); + do_log("hacking attempt made by {$CURUSER['username']},uid {$CURUSER['id']}", 'error'); throw new \RuntimeException("no Action"); } }catch(\Throwable $exception){