From: Florent Bruneau Date: Fri, 6 Jun 2008 06:30:14 +0000 (+0200) Subject: Mailman don't understand UTF8 (Closes #761) X-Git-Tag: core/1.0.0~126 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a5878ac19cc6ea75a753470cf68b7d2180d6cd51;p=platal.git Mailman don't understand UTF8 (Closes #761) Signed-off-by: Florent Bruneau --- diff --git a/bin/cron/cron_ml_moderate.php b/bin/cron/cron_ml_moderate.php index 8ee7d72..4891bdc 100755 --- a/bin/cron/cron_ml_moderate.php +++ b/bin/cron/cron_ml_moderate.php @@ -77,7 +77,7 @@ while ($sent_mails < $globals->lists->max_mail_per_min break; } - if ($client->handle_request($list, $mid, $action, $reason)) { + if ($client->handle_request($list, $mid, $action, utf8_decode($reason))) { $sent_mails += $count; $texte = "le message suivant :\n\n" . " Auteur: {$mail['sender']}\n" diff --git a/modules/lists.php b/modules/lists.php index 6ed325c..544feed 100644 --- a/modules/lists.php +++ b/modules/lists.php @@ -418,7 +418,7 @@ class ListsModule extends PLModule } if (Post::has('sdel')) { /* 2 = REJECT */ $sub = $this->client->get_pending_sub($liste, Env::v('sdel')); - $this->client->handle_request($liste, Post::v('sdel'), 2, Post::v('reason')); + $this->client->handle_request($liste, Post::v('sdel'), 2, utf8_decode(Post::v('reason'))); $info = "refusée"; } if ($sub) {