M1 Abschluss

This commit is contained in:
2026-07-12 00:51:01 +02:00
parent 84d957e3ec
commit 66bdd38d54
5 changed files with 307 additions and 13 deletions
+4 -2
View File
@@ -55,7 +55,9 @@ function h($s) { return htmlspecialchars((string)$s, ENT_QUOTES, 'UTF-8'); }
$errors = [];
$success = false;
$emailNorm = mb_strtolower(trim((string)$mailadress));
$emailNorm = function_exists('mb_strtolower')
? mb_strtolower(trim((string)$mailadress), 'UTF-8')
: strtolower(trim((string)$mailadress));
if ($emailNorm === '' || !filter_var($emailNorm, FILTER_VALIDATE_EMAIL)) {
$errors[] = "Keine gültige E-Mail im System gefunden (Variable \$mailadress).";
}
@@ -339,4 +341,4 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !$errors) {
<?php include "footer.php";
?>
?>