1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

fix error where blank email addresses were sneaking in the stack

Summary: array_filter to the rescue

Test Plan: mostly lots of reasoning (as opposed to making a fake user with a blank email address to reproduce)

Reviewers: epriestley, chad

Reviewed By: chad

CC: aran, Korvin

Maniphest Tasks: T2052

Differential Revision: https://secure.phabricator.com/D3927
This commit is contained in:
Bob Trahan 2012-11-08 12:21:50 -08:00
parent 378702e7b4
commit bd1bc6d71a

View file

@ -356,7 +356,7 @@ final class PhabricatorMetaMTAReceivedMail extends PhabricatorMetaMTADAO {
foreach (explode(',', $addresses) as $address) { foreach (explode(',', $addresses) as $address) {
$raw_addresses[] = $this->getRawEmailAddress($address); $raw_addresses[] = $this->getRawEmailAddress($address);
} }
return $raw_addresses; return array_filter($raw_addresses);
} }
private function lookupPublicUser() { private function lookupPublicUser() {