sanitize all input against xss and fixed bug with time encoding when adding result
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
include("../scripts/functions.php");
|
||||
|
||||
if($_SERVER['REQUEST_METHOD'] == "POST"){
|
||||
$user_name = $_POST['user_name'];
|
||||
$password = $_POST['password'];
|
||||
$user_name = sanitize_input($_POST['user_name']);
|
||||
$password = sanitize_input($_POST['password']);
|
||||
|
||||
if(!empty($user_name) && !empty($password)) {
|
||||
$user_data = get_user_data_name($con, $user_name);
|
||||
|
||||
Reference in New Issue
Block a user