From cc8e1c4ed0f93ba751c5197301335f38dd81fd4c Mon Sep 17 00:00:00 2001 From: x99bachelart Date: Sun, 28 Sep 2003 14:35:28 +0000 Subject: [PATCH] bugfix (signatures drops) --- post.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.1.4