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_station($con, $_POST['station_name'], $_POST['station_pos']);
|
||||
$station_name = sanitize_input($_POST['station_name']);
|
||||
$station_pos = sanitize_input($_POST['station_pos']);
|
||||
write_station($con, $station_name, $station_pos);
|
||||
header("Location: stationen.php");
|
||||
die;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user