Overview
Comment: | Corrige encodage du From dans les mails envoyés, signalé par @Emelyne |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
2cc684a884cb680f2155a855663e0c0c |
User & Date: | bohwaz on 2018-02-21 04:38:21 |
Other Links: | manifest | tags |
References
2020-12-08
| ||
23:25 | • Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz | |
Context
2018-02-21
| ||
04:51 | Ne pas permettre de supprimer le champ email ! check-in: b619ea4702 user: bohwaz tags: trunk, stable | |
04:38 | Corrige encodage du From dans les mails envoyés, signalé par @Emelyne check-in: 2cc684a884 user: bohwaz tags: trunk, stable | |
04:23 | On ne peut pas s'importer soi-même en CSV, car on risque d'importer n'importe quoi et de se retrouver à la porte (dans ce cas-ci : un espace au début de l'adresse email !) check-in: d4e0b0f126 user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Utils.php from [4a82bb682d] to [b5a3dd5526].
︙ | ︙ | |||
382 383 384 385 386 387 388 | $content = trim($content); $content = preg_replace("#(?<!\r)\n#si", "\r\n", $content); $config = Config::getInstance(); if (empty($headers['From'])) { | | | 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 | $content = trim($content); $content = preg_replace("#(?<!\r)\n#si", "\r\n", $content); $config = Config::getInstance(); if (empty($headers['From'])) { $headers['From'] = sprintf('"%s" <%s>', sprintf('=?UTF-8?B?%s?=', base64_encode($config->get('nom_asso'))), $config->get('email_envoi_automatique')); } $headers['MIME-Version'] = '1.0'; $headers['Content-type'] = 'text/plain; charset=UTF-8'; $headers['Return-Path'] = $config->get('email_envoi_automatique'); $hash = sha1(uniqid() . var_export([$headers, $to, $subject, $content], true)); |
︙ | ︙ |