Skip to content
Snippets Groups Projects
Commit ee0bc874 authored by bx khateri's avatar bx khateri
Browse files

report message

parent 67348eed
No related branches found
No related tags found
No related merge requests found
......@@ -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";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment