Explaned Filter-Statments

This commit is contained in:
eichehome 2022-02-01 22:59:03 +01:00
parent b0d9a64456
commit 1c8dda0804
2 changed files with 3 additions and 1 deletions

View file

@ -31,6 +31,7 @@ $session = new Session();
$db = new Datenbank($dbname, $username, $password, $servername);
/*===============================*/
//Nutzereingaben auf validität prüfen
$nutzername = filter_input(INPUT_POST, "name", FILTER_SANITIZE_STRING);
$password = filter_input(INPUT_POST, "passwort", FILTER_SANITIZE_NUMBER_INT);
$check = filter_input(INPUT_POST, "check", FILTER_SANITIZE_STRING);

View file

@ -55,7 +55,8 @@ function convertUmlauteFrom(string $text) {
if (isset($_SESSION["name"])) {
$nutzername = $_SESSION["name"];
}
}
//Nutzereingaben auf validität prüfen
$check = filter_input(INPUT_POST, "check", FILTER_SANITIZE_STRING);
if (isset($_SESSION["login"]) && $session->get("login") == 1) {