<?php
/***************************************************************************
- * Copyright (C) 2003-2010 Polytechnique.org *
+ * Copyright (C) 2003-2011 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
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") . "\\""',