When MSGID has domain but no point

This commit is contained in:
Deon George
2021-08-22 16:55:39 +10:00
parent 071b817194
commit 1ae73e80c2
2 changed files with 2 additions and 8 deletions

View File

@@ -742,7 +742,7 @@ class Message extends FTNBase
// MSGID should be the basis of the source, we'll overrite our src from origin if we have it
$m = [];
if ($this->msgid && preg_match('#([0-9]+:[0-9]+/[0-9]+)?\.?([0-9]+)?@?([A-Za-z-_~]+)?\ +#',$this->msgid,$m)) {
$this->src = Address::parseFTN($m[1].(isset($m[2]) ? '.'.$m[2] : '').(isset($m[3]) ? '@'.$m[3] : ''));
$this->src = Address::parseFTN($m[1].((isset($m[2]) && $m[2] != '') ? '.'.$m[2] : '').(isset($m[3]) ? '@'.$m[3] : ''));
}
// Parse SEEN-BY