From: x2003bruneau Date: Thu, 13 Jul 2006 07:50:20 +0000 (+0000) Subject: Fix xface handling in case it contains =?(B|Q)?...?= X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0cae479020cf021a2be396c31c760e073fe1cda6;p=banana.git Fix xface handling in case it contains =?(B|Q)?...?= xface transfer encoding is now handled by makeLink git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@90 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- diff --git a/Changelog b/Changelog index d33bb9c..07f3746 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,9 @@ +Thu, 13 Jul 2006 Florent Bruneau + * Bugfix: xfaces handling + Wed, 12 Jul 2006 Florent Bruneau * Add the list of subscriptions after the spool + * Make article view more user-friendly Tue, 11 Jul 2006 Florent Bruneau * Bugfix: body conversion from unknown charset diff --git a/banana/misc.inc.php b/banana/misc.inc.php index 8991d58..269f2d0 100644 --- a/banana/misc.inc.php +++ b/banana/misc.inc.php @@ -64,7 +64,7 @@ function makeLink($params) if (isset($params['xface'])) { $file = dirname($file) . '/xface.php'; - $get = 'face=' . $params['xface']; + $get = 'face=' . urlencode($params['xface']); } else if (count($params) != 0) { $get = '?'; foreach ($params as $key=>$value) { @@ -308,10 +308,14 @@ function formatDisplayHeader($_header,$_text) { return $rsl; case "x-face": - return 'x-face'; + return 'x-face'; case "subject": - return formatPlainText($_text); + $link = null; + if (function_exists('hook_getSubject')) { + $link = hook_getSubject($_text); + } + return formatPlainText($_text) . $link; default: return htmlentities($_text);