M1 Abschluss
This commit is contained in:
+4
-2
@@ -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";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user