From ee0bc874aca4e8259b2d1a54baf99d8ec16e20e1 Mon Sep 17 00:00:00 2001 From: bx khateri <bx@bxs-MacBook-Pro.local> Date: Thu, 23 Nov 2023 16:29:46 +0100 Subject: [PATCH] report message --- report_message.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report_message.php b/report_message.php index 3f95a97..9508f53 100644 --- a/report_message.php +++ b/report_message.php @@ -13,13 +13,13 @@ $message = NULL; $report_body = NULL; if (isset($_POST["reported_message_id"])) { - $reported_message_id = $_POST["reported_message_id"]; + $reported_message_id = htmlspecialchars($_POST["reported_message_id"]); } else { header("Location: index.php"); } if (isset($_POST["report_body"]) && !empty($_POST["report_body"])) { - $report_body = $_POST["report_body"]; + $report_body = htmlspecialchars($_POST["report_body"]); } else { $errors = "report body shoudn't be empty"; } -- GitLab