Allow for origin/tagline/tearline can have UTF8 chars, show # messages in packets

This commit is contained in:
Deon George
2021-09-12 23:06:17 +10:00
parent 5e8b590f17
commit 79e613a811
7 changed files with 19 additions and 5 deletions

View File

@@ -22,14 +22,17 @@ use App\Traits\EncodeUTF8;
*/
class Message extends FTNBase
{
private const LOGKEY = 'FM-';
use EncodeUTF8;
private const LOGKEY = 'FM-';
private const cast_utf8 = [
'subject',
'message',
'message_src',
'origin',
'tearline',
'tagline',
];
// Single value kludge items

View File

@@ -445,7 +445,7 @@ class Packet extends FTNBase implements \Iterator, \Countable
// This shouldnt happen
if ($e || $ao->exists) {
Log::error(sprintf('%s:! Attempting to create address [%s], but it exists?',self::LOGKEY,$msg->fboss));
Log::error(sprintf('%s:! Unexpected error attempting to create address [%s]',self::LOGKEY,$msg->fboss));
$this->errors->push($msg);
return;
}