Commit d1217fcd authored by Thomas Bella's avatar Thomas Bella

Switch to PHPMailer email validation

parent fff86020
Pipeline #305 passed with stage
in 16 seconds
......@@ -86,7 +86,7 @@ if (isset($_POST["add"], $_POST["type"]) && $_POST["type"] == "domain") {
$emails = explode(';', $_POST["emailList"]);
$validList = '';
foreach($emails as $singleEmail) {
if (filter_var($singleEmail, FILTER_VALIDATE_EMAIL)) {
if (phpMailer::ValidateAddress($singleEmail)) {
if ($validList != '') {
$validList .= ';';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment