Skip to content

Commit

Permalink
Merge pull request #4 from matidau/3-20k+-inbox-disappears-and-needs-…
Browse files Browse the repository at this point in the history
…to-be-resynced

Update z_RFC822.php
  • Loading branch information
matidau authored Feb 25, 2023
2 parents a475f5f + b133dd1 commit a14c3c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/include/z_RFC822.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function parseAddressList($address = null, $default_domain = null, $nest_

if (isset($address)) $this->address = $address;
// z-push addition
if (strlen(trim($this->address)) == 0) return array();
if (strlen(trim((string) $this->address)) == 0) return array();
if (isset($default_domain)) $this->default_domain = $default_domain;
if (isset($nest_groups)) $this->nestGroups = $nest_groups;
if (isset($validate)) $this->validate = $validate;
Expand Down Expand Up @@ -244,7 +244,7 @@ protected function _splitAddresses($address)
}

// Split the string based on the above ten or so lines.
$parts = explode($split_char, $address);
$parts = explode($split_char, (string) $address);
$string = $this->_splitCheck($parts, $split_char);

// If a group...
Expand Down Expand Up @@ -276,7 +276,7 @@ protected function _splitAddresses($address)

// Remove the now stored address from the initial line, the +1
// is to account for the explode character.
$address = trim(substr($address, strlen($string) + 1));
$address = trim(substr((string) $address, strlen($string) + 1));

// If the next char is a comma and this was a group, then
// there are more addresses, otherwise, if there are any more
Expand Down Expand Up @@ -305,7 +305,7 @@ protected function _splitAddresses($address)
protected function _isGroup($address)
{
// First comma not in quotes, angles or escaped:
$parts = explode(',', $address);
$parts = explode(',', (string) $address);
$string = $this->_splitCheck($parts, ',');

// Now we have the first address, we can reliably check for a
Expand Down

0 comments on commit a14c3c2

Please sign in to comment.