Should avoid fatal errors when sending emails from the website...
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 28 Oct 2010 21:03:51 +0000 (23:03 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 28 Oct 2010 21:03:51 +0000 (23:03 +0200)
(including automatic emails).

Don't know how we didn't notice this one before.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/plmailer.php

index 24479f6..ce3df4c 100644 (file)
@@ -176,7 +176,7 @@ class PlMailer extends Mail_Mime {
         if ($email instanceof PlUser) {
             $email = self::formatUser($email);
         }
-        $email = preg_replace('!(^|, *)([^<"]+?) *(<[^>]*>)!ue',
+        $email = preg_replace('!(^|, *)([^<"]+?) *(<[^>]*>)!u',
                               '\1 "\2" \3', $email);
         return preg_replace('/"([^<]+)"/e',
                             '"\\"" . PlMailer::encodeStringQP("\1") . "\\""',