Fix processing echomail and when mail crc is calculated as it was decompressing the CompressedString
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 38s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m43s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2024-05-21 22:46:53 +10:00
parent 903c19dbeb
commit 396614afcc
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;
}
/**