From: x99bachelart Date: Sun, 28 Sep 2003 14:35:28 +0000 (+0000) Subject: bugfix (signatures drops) X-Git-Tag: 1.8~394 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=cc8e1c4ed0f93ba751c5197301335f38dd81fd4c;p=banana.git bugfix (signatures drops) --- diff --git a/post.php b/post.php index fe848f2..74c583a 100644 --- a/post.php +++ b/post.php @@ -49,7 +49,12 @@ if (isset($group) && isset($id) && isset($_REQUEST['type']) && $subject = (preg_match("/^re:/i",$post->headers->subject)?"":"Re: ") .$post->headers->subject; if ($profile['dropsig']) { - $quotetext = preg_replace("/^(.*)\n-- \n.*$/m","\1",$post->body); + $cutoff=strpos($post->body,"\n-- \n"); + if ($cuttoff) { + $quotetext = substr($post->body,0,strpos($post->body,"\n-- \n")); + } else { + $quotetext = $post->body; + } } else { $quotetext = $post->body; }