Mailman don't understand UTF8 (Closes #761)
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 6 Jun 2008 06:30:14 +0000 (08:30 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 6 Jun 2008 06:31:33 +0000 (08:31 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
bin/cron/cron_ml_moderate.php
modules/lists.php

index 8ee7d72..4891bdc 100755 (executable)
@@ -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"
index 6ed325c..544feed 100644 (file)
@@ -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) {