From cb66028b7754617eb16c656984d2a3310af16b1d Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sat, 17 Sep 2022 21:04:19 +0100 Subject: [PATCH] Fixed early use of variable --- 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 5ad1ef5..7787bca 100644 --- a/report-issue/index.php +++ b/report-issue/index.php @@ -21,6 +21,9 @@ $subject = $detail = ""; $ua_str = $_SERVER["HTTP_USER_AGENT"]; + // Define response variable as blank before POSTing + $giteaResponse = ""; + if ($_SERVER["REQUEST_METHOD"] == "POST" ) { $subject = validate($_POST["subject"]); $detail = validate($_POST["detail"]); @@ -92,7 +95,7 @@

You have submitted:

-

+