Some messages have the origin in the middle of the message - change strpos to strrpos

This commit is contained in:
Deon George
2021-11-29 21:12:44 +11:00
parent a00534794e
commit f1780e61ea
2 changed files with 2 additions and 1 deletions

View File

@@ -701,7 +701,7 @@ class Message extends FTNBase
}
// Anything after the origin line is also kludge data.
if ($originpos = strpos($kl,"\r * Origin: ")) {
if ($originpos = strrpos($kl,"\r * Origin: ")) {
if (! $this->message) {
$this->message .= substr($kl,$retpos+1,$originpos-$retpos-1);
$this->parseOrigin(substr($kl,$originpos+1));