From a5878ac19cc6ea75a753470cf68b7d2180d6cd51 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Fri, 6 Jun 2008 08:30:14 +0200 Subject: [PATCH] Mailman don't understand UTF8 (Closes #761) Signed-off-by: Florent Bruneau --- bin/cron/cron_ml_moderate.php | 2 +- modules/lists.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.1.4