From a75dcfa4056adc49e2b585e22ad9cc438ec67cea Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Tue, 24 May 2005 08:46:34 +0000 Subject: [PATCH] fixes git-archimport-id: opensource@polytechnique.org--2005/banana--mainline--1.0--patch-21 --- Changelog | 1 + banana/banana.inc.php.in | 8 ++++---- banana/misc.inc.php | 2 +- po/banana.pot | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Changelog b/Changelog index b950355..e1060bf 100644 --- a/Changelog +++ b/Changelog @@ -5,6 +5,7 @@ Tue, 24 May 2005 Pierre Habouzit * Fix one problem with $this->ids beeing empty in Spool. * Fix encoding issues since iconv truncates strings sometimes. + * Make the post forms use utf-8. ================================================================================ VERSION 1.0 diff --git a/banana/banana.inc.php.in b/banana/banana.inc.php.in index 1aa3772..1f39794 100644 --- a/banana/banana.inc.php.in +++ b/banana/banana.inc.php.in @@ -23,7 +23,7 @@ class Banana var $wrap = 74; - var $custom = "Content-Type: text/plain; charset=iso-8859-15\nMime-Version: 1.0\nContent-Transfer-Encoding: 8bit\nUser-Agent: Banana @VERSION@\n"; + var $custom = "Content-Type: text/plain; charset=utf-8\nMime-Version: 1.0\nContent-Transfer-Encoding: 8bit\nUser-Agent: Banana @VERSION@\n"; var $host = 'news://localhost:119/'; @@ -228,17 +228,17 @@ class Banana $cuts = displayshortcuts(); $html = '

'._b_('Nouveau message').'

'.$cuts; - $html .= '
'; + $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; $html .= ''; + .$body.($this->profile['sig'] ? "\n\n-- \n".htmlentities($this->profile['sig']) : '').''; $html .= '
'._b_('En-têtes').'
'._b_('Nom').''.htmlentities($this->profile['name']).'
'._b_('Sujet').'
'._b_('Forums').'
'._b_('Suivi à').'
'._b_('Organisation').''.$this->profile['org'].'
'._b_('Organisation').''.$this->profile['org']1.'
'._b_('Corps').'
'; if ($id > 0) { $html .= ''; diff --git a/banana/misc.inc.php b/banana/misc.inc.php index ea88ccd..41a37ba 100644 --- a/banana/misc.inc.php +++ b/banana/misc.inc.php @@ -206,7 +206,7 @@ function wrap($text, $_prefix="") } function formatbody($_text) { - $res = "\n\n" . htmlentities(wrap($_text, ""))."\n\n"; + $res = "\n\n" . wrap($_text, "")."\n\n"; $res = preg_replace("/(<|>|")/", " \\1 ", $res); $res = preg_replace('/(["\[])?((https?|ftp|news):\/\/[a-z@0-9.~%$£µ&i#\-+=_\/\?]*)(["\]])?/i', "\\1\\2\\4", $res); $res = preg_replace("/ (<|>|") /", "\\1", $res); diff --git a/po/banana.pot b/po/banana.pot index e9e4342..84e1d28 100644 --- a/po/banana.pot +++ b/po/banana.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-05-24 09:15+0200\n" +"POT-Creation-Date: 2005-05-24 10:46+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -- 2.1.4