Overview
SHA1:5bae836a5b1a059ae28ff5a5fd211b54a2d9d12b
Date: 2018-05-22 13:44:46
User: bohwaz
Comment:Filtrer les adresses email invalides avant envoi
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2018-05-22
13:53
[f0a66b7b22] Corrige scrolling horizontal fix [016baf71850425de] (user: bohwaz, tags: trunk, stable)
13:44
[5bae836a5b] Filtrer les adresses email invalides avant envoi (user: bohwaz, tags: trunk, stable)
2018-05-16
21:22
[3bd6986537] Correction des URI dans les pages wiki (pages avec un tiret à la fin ou au début de l'URI) (user: bohwaz, tags: trunk)
Changes

Modified src/include/lib/Garradin/Utils.php from [eb83eb79bd] to [936bf5540b].

404
405
406
407
408
409
410






411
412
413
414
415
416
417
        if (!is_array($to))
        {
            $to = [$to];
        }

        foreach ($to as $recipient)
        {






            if (!self::_sendMail($recipient, $subject, $content, $headers))
            {
                throw new \RuntimeException('Impossible d\'envoyer l\'email');
            }
        }

        return true;







>
>
>
>
>
>







404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
        if (!is_array($to))
        {
            $to = [$to];
        }

        foreach ($to as $recipient)
        {
            // Ne pas envoyer de mail à des adresses invalides
            if (!var_filter($recipient, FILTER_VALIDATE_EMAIL))
            {
                continue;
            }

            if (!self::_sendMail($recipient, $subject, $content, $headers))
            {
                throw new \RuntimeException('Impossible d\'envoyer l\'email');
            }
        }

        return true;