From b8a6dda0829032a9c556a5516ed0189846bca56a Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 18 Sep 2022 20:29:48 +0100 Subject: [PATCH] Include UA string and PHP version in issue report. --- report-issue/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/report-issue/index.php b/report-issue/index.php index 7059933..3d3f036 100644 --- a/report-issue/index.php +++ b/report-issue/index.php @@ -40,9 +40,12 @@ "Content-Type: application/json" ); + // Prepare $detail to POST + $body = "User Agent: ", $ua_str, "\n Server PHP Version: ", PHP_VERSION, "\n", $detail; + // Prepare the request $rawData = array( - 'body' => $detail, + 'body' => $body, 'title' => $subject, 'closed' => 'false' );