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:
parent
378702e7b4
commit
bd1bc6d71a
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue