Overview
Comment:Indiquer mailto: dans les adresses mails
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4151daeb1ed07d997c84c245747e572cdba64cca
User & Date: bohwaz on 2012-10-01 00:14:04
Other Links: manifest | tags
Context
2012-10-05
02:09
Déplacement des rapports de compte check-in: 4ec077c81e user: bohwaz tags: trunk
2012-10-01
00:14
Indiquer mailto: dans les adresses mails check-in: 4151daeb1e user: bohwaz tags: trunk
2012-09-28
03:26
Les comptes de produit augmentent en les créditant check-in: 051bda0071 user: bohwaz tags: trunk
Changes

Modified include/lib.utils.php from [43eff697cb] to [d0080360fa].

347
348
349
350
351
352
353


354
355
356
357
358
359
360
        // Espaces typograhiques
        $str = preg_replace('/\h*([?!;:»])(\s+|$)/u', ' $1$2', $str);
        $str = preg_replace('/(^|\s+)([«])\h*/u', '$1$2 ', $str);

        // Liens
        $str = preg_replace('/(?<!\\\\)\[([^-]+)->([^\]]+)\]/', '<a href="$2">$1</a>', $str);
        $str = preg_replace('/(?<!\\\\)\[([^\]]+)\]/', '<a href="$1">$1</a>', $str);



        return $str;
    }

    static public function mail($to, $subject, $content, $additional_headers = array())
    {
        // Création du contenu du message







>
>







347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
        // Espaces typograhiques
        $str = preg_replace('/\h*([?!;:»])(\s+|$)/u', '&nbsp;$1$2', $str);
        $str = preg_replace('/(^|\s+)([«])\h*/u', '$1$2&nbsp;', $str);

        // Liens
        $str = preg_replace('/(?<!\\\\)\[([^-]+)->([^\]]+)\]/', '<a href="$2">$1</a>', $str);
        $str = preg_replace('/(?<!\\\\)\[([^\]]+)\]/', '<a href="$1">$1</a>', $str);

        $str = preg_replace('/<a href="((?!http).*@.*)">/iU', '<a href="mailto:$1">', $str);

        return $str;
    }

    static public function mail($to, $subject, $content, $additional_headers = array())
    {
        // Création du contenu du message