Fix message processing when tag/tear lines dont start with double \r
This commit is contained in:
parent
2590c2de71
commit
27fe3cd223
@ -734,10 +734,10 @@ class Message extends FTNBase
|
|||||||
$ptr_content_start = 0;
|
$ptr_content_start = 0;
|
||||||
|
|
||||||
// See if we have a tagline
|
// See if we have a tagline
|
||||||
if ($ptr_content_end=strrpos($content,"\r\r... ",$ptr_content_start)) {
|
if ($ptr_content_end=strrpos($content,"\r... ",$ptr_content_start)) {
|
||||||
$o->msg = substr($content,$ptr_content_start,$ptr_content_end);
|
$o->msg = substr($content,$ptr_content_start,$ptr_content_end+1);
|
||||||
$ptr_content_start = $ptr_content_end+6;
|
|
||||||
|
|
||||||
|
$ptr_content_start = $ptr_content_end+5;
|
||||||
$ptr_content_end = strpos($content,"\r",$ptr_content_start);
|
$ptr_content_end = strpos($content,"\r",$ptr_content_start);
|
||||||
|
|
||||||
// If there is no terminating "\r", then that's it
|
// If there is no terminating "\r", then that's it
|
||||||
@ -752,11 +752,11 @@ class Message extends FTNBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
// See if we have a tearline
|
// See if we have a tearline
|
||||||
if ($ptr_content_end=strrpos($content,"\r\r--- ",$ptr_content_start)) {
|
if ($ptr_content_end=strrpos($content,"\r--- ",$ptr_content_start)) {
|
||||||
if (! $ptr_content_start)
|
if (! $ptr_content_start)
|
||||||
$o->msg = substr($content,$ptr_content_start,$ptr_content_end);
|
$o->msg = substr($content,$ptr_content_start,$ptr_content_end+1);
|
||||||
$ptr_content_start = $ptr_content_end+6;
|
|
||||||
|
|
||||||
|
$ptr_content_start = $ptr_content_end+5;
|
||||||
$ptr_content_end = strpos($content,"\r",$ptr_content_start);
|
$ptr_content_end = strpos($content,"\r",$ptr_content_start);
|
||||||
|
|
||||||
// If there is no terminating "\r", then that's it
|
// If there is no terminating "\r", then that's it
|
||||||
|
Loading…
Reference in New Issue
Block a user