Fix getPostId with accentuated characters
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Fri, 30 Mar 2007 12:06:09 +0000 (12:06 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:37 +0000 (00:35 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@230 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/spool.inc.php

index 31f3ff6..fbfe75c 100644 (file)
@@ -586,9 +586,9 @@ class BananaSpool
             if (function_exists('hook_formatDisplayHeader')) {
                 $val = hook_formatDisplayHeader('subject', $test, true);
                 if (is_array($val)) {
-                    $test = $val[0];
+                    $test = banana_html_entity_decode($val[0]);
                 } else {
-                    $test = $val;
+                    $test = banana_html_entity_decode($val);
                 }
             }
             $test = trim($test);