From 72afc3ecf8ee0df21818cbf7428972cc1cdbd58e Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Thu, 13 Jul 2006 07:50:20 +0000 Subject: [PATCH] =?utf8?q?=3D=3Futf-8=3Fq=3FFix=3D20xface=3D20handling=3D2?= =?utf8?q?0in=3D20case=3D20it=3D20contains=3D20=3D3D=3D3F(B|Q)=3D3F...=3D3?= =?utf8?q?F=3D3D?= =20xface=20transfer=20encoding=20is=20now=20handled=20by=20makeLink?= git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@90 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- Changelog | 4 ++++ banana/misc.inc.php | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) 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); -- 2.1.4