mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-05-29 20:32:25 -04:00
Fix #102 - strip tags when saving incident
This commit is contained in:
parent
9eba848423
commit
570895c7bd
@ -83,8 +83,8 @@ class Incident implements JsonSerializable
|
||||
global $mysqli, $message;
|
||||
$user_id = $_SESSION['user'];
|
||||
$type = $_POST['type'];
|
||||
$title = $_POST['title'];
|
||||
$text = $_POST['text'];
|
||||
$title = strip_tags($_POST['title']);
|
||||
$text = strip_tags($_POST['text'], '<br>');
|
||||
|
||||
if (strlen($title)==0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user