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);
|
$db = new Datenbank($dbname, $username, $password, $servername);
|
||||||
|
|
||||||
/*===============================*/
|
/*===============================*/
|
||||||
|
//Nutzereingaben auf validität prüfen
|
||||||
$nutzername = filter_input(INPUT_POST, "name", FILTER_SANITIZE_STRING);
|
$nutzername = filter_input(INPUT_POST, "name", FILTER_SANITIZE_STRING);
|
||||||
$password = filter_input(INPUT_POST, "passwort", FILTER_SANITIZE_NUMBER_INT);
|
$password = filter_input(INPUT_POST, "passwort", FILTER_SANITIZE_NUMBER_INT);
|
||||||
$check = filter_input(INPUT_POST, "check", FILTER_SANITIZE_STRING);
|
$check = filter_input(INPUT_POST, "check", FILTER_SANITIZE_STRING);
|
||||||
|
|
3
wahl.php
3
wahl.php
|
@ -55,7 +55,8 @@ function convertUmlauteFrom(string $text) {
|
||||||
|
|
||||||
if (isset($_SESSION["name"])) {
|
if (isset($_SESSION["name"])) {
|
||||||
$nutzername = $_SESSION["name"];
|
$nutzername = $_SESSION["name"];
|
||||||
}
|
}
|
||||||
|
//Nutzereingaben auf validität prüfen
|
||||||
$check = filter_input(INPUT_POST, "check", FILTER_SANITIZE_STRING);
|
$check = filter_input(INPUT_POST, "check", FILTER_SANITIZE_STRING);
|
||||||
|
|
||||||
if (isset($_SESSION["login"]) && $session->get("login") == 1) {
|
if (isset($_SESSION["login"]) && $session->get("login") == 1) {
|
||||||
|
|
Loading…
Reference in a new issue