X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fbanana.inc.php.in;h=86df2508d2f21e16badafb7b5d4b5a4dda9e2173;hb=ee5478a3f239b39d1481a9f3390c3e8701a556e5;hp=a70aa460b5f5b8c13b985965e42e5c4977f25707;hpb=4666b7b489b248ea80482583bdf9d64e5369fd5f;p=banana.git diff --git a/banana/banana.inc.php.in b/banana/banana.inc.php.in index a70aa46..86df250 100644 --- a/banana/banana.inc.php.in +++ b/banana/banana.inc.php.in @@ -53,7 +53,7 @@ class Banana * $matches[2] = "http://www.polytechnique.org" * $matches[3] = "]" */ - var $url_regexp = '(["\[])?((?:https?|ftp|news)://(?:&|,*[a-z@0-9.~%$£µ&i#\-+=_/\?])*)(["\]])?'; + var $url_regexp = '(["\[])?((?:https?|ftp|news)://(?:&|\.*,*[a-z@0-9~%$£µ&i#\-+=_/\?])*)(["\]])?'; /** Boundary for multipart messages @@ -350,8 +350,8 @@ class Banana if ($this->_newPost($id)) { $subject = 'Re: ' . preg_replace("/^re\s*:\s*/i", '', $this->post->headers['subject']); $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'] : '')); + . wrap($this->post->get_body(), "> ")) + . ($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;