sanitize all input against xss and fixed bug with time encoding when adding result
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
$user_data = check_login($con);
|
||||
|
||||
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
write_team($con, $_POST['team_name'], $_POST['fire_department']);
|
||||
$team_name = sanitize_input($_POST['team_name']);
|
||||
$fire_department = sanitize_input($_POST['fire_department']);
|
||||
write_team($con, $team_name, $fire_department);
|
||||
header("Location: mannschaft.php");
|
||||
die;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user