Explaned Filter-Statments
This commit is contained in:
parent
b0d9a64456
commit
1c8dda0804
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
1
wahl.php
1
wahl.php
|
@ -56,6 +56,7 @@ 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) {
|
||||
|
|
Loading…
Reference in a new issue