Fix processing echomail and when mail crc is calculated as it was decompressing the CompressedString

This commit is contained in:
Deon George 2024-05-21 22:46:53 +10:00
parent 18f5354d0c
commit b443762739
2 changed files with 2 additions and 3 deletions

View File

@ -240,8 +240,6 @@ class Message extends FTNBase
$o->mo->flags = $o->header['flags'];
$o->mo->cost = $o->header['cost'];
$o->mo->msg_crc = md5($o->mo->msg_src);
if ($o->fftn)
$o->mo->fftn_id = $o->fftn->id;
else
@ -699,6 +697,7 @@ class Message extends FTNBase
// Process the message content
if ($content=substr($message,$ptr_start,$ptr_end-$ptr_start)) {
$o->msg_src = $content;
$o->msg_crc = md5($content);
$ptr_content_start = 0;
// See if we have a tagline

View File

@ -11,7 +11,7 @@ abstract class Process
{
public static function canProcess(Echoarea $eao): bool
{
return $eao->automsgs;
return $eao->automsgs ? TRUE : FALSE;
}
/**