projects
/
banana.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74b61ee
)
bugfix (signatures drops)
author
x99bachelart
<x99bachelart>
Sun, 28 Sep 2003 14:35:28 +0000
(14:35 +0000)
committer
x99bachelart
<x99bachelart>
Sun, 28 Sep 2003 14:35:28 +0000
(14:35 +0000)
post.php
patch
|
blob
|
blame
|
history
diff --git
a/post.php
b/post.php
index
fe848f2
..
74c583a
100644
(file)
--- 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;
}