~ubuntu-branches/debian/squeeze/spip/squeeze

« back to all changes in this revision

Viewing changes to ecrire/inc/envoyer_mail.php

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2010-09-18 15:08:53 UTC
  • mfrom: (11.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100918150853-2g8yh71duum53p5s
Added patch to fix int overflow
in articles' published date.
Thanks to David Prévot for reporting.
Closes: #597026 

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
 
157
157
        spip_log("mail $email\n$sujet\n$headers",'mails');
158
158
 
 
159
        // mode TEST : forcer l'email
 
160
        if (defined('_TEST_EMAIL_DEST')) {
 
161
                if (!_TEST_EMAIL_DEST)
 
162
                        return false;
 
163
                else
 
164
                        $email = _TEST_EMAIL_DEST;
 
165
        }
 
166
 
159
167
        // Ajouter le \n final
160
168
        if ($headers = trim($headers)) $headers .= "\n";
161
169
        if (function_exists('wordwrap') && (preg_match('/multipart\/mixed/',$headers) == 0))