From: x2003bruneau Date: Sun, 23 Jul 2006 15:25:13 +0000 (+0000) Subject: Fix new message init X-Git-Tag: 1.8~174 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=9c492300bb483ef02d62f7b1afda7bf330170025;p=banana.git Fix new message init git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@123 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- diff --git a/banana/banana.inc.php.in b/banana/banana.inc.php.in index af969b2..25ac4c5 100644 --- a/banana/banana.inc.php.in +++ b/banana/banana.inc.php.in @@ -319,7 +319,7 @@ class Banana $this->spool->delid($id); $this->nntp->quit(); redirectInBanana(Array('group' => $group, - 'first' => $id)); + 'first' => $id)); } else { return '

'._b_('Impossible d\'annuler le message').'

'; } @@ -345,16 +345,17 @@ class Banana $this->nntp->group($group); if ($this->_newPost($id)) { $subject = 'Re: ' . preg_replace("/^re\s*:\s*/i", '', $this->post->headers['subject']); - $body = utf8_encode($this->post->name." "._b_("a écrit"))." :\n" + $body = to_entities(utf8_encode($this->post->name." "._b_("a écrit"))." :\n" . wrap($this->post->get_body(), "> ") - . $this->profile['sig'] ? "\n\n-- \n". $this->profile['sig'] : ''; + . ($this->profile['sig'] ? "\n\n-- \n". $this->profile['sig'] : '')); $target = isset($this->post->headers['followup-to']) ? $this->post->headers['followup-to'] : $this->post->headers['newsgroups']; $followup = null; } } else { - $subject = $target = $followup = null; - $body = $this->profile['sig'] ? "\n\n-- \n". $this->profile['sig'] : ''; + $targe = $group; + $subject = $followup = null; + $body = $this->profile['sig'] ? "\n\n-- \n". $this->profile['sig'] : ''; } $this->nntp->quit();