Skip to content

Commit

Permalink
Don't leak Horde_Mail_Exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Apr 11, 2015
1 parent 3d179be commit 8b3e25a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion framework/Mime/lib/Horde/Mime/Headers/Addresses.php
Expand Up @@ -65,12 +65,19 @@ public function getAddressList($first = false)
}

/**
*
* @throws Horde_Mime_Exception
*/
protected function _setValue($value)
{
/* @todo Implement with traits */
$rfc822 = new Horde_Mail_Rfc822();
$addr_list = $rfc822->parseAddressList($value);

try {
$addr_list = $rfc822->parseAddressList($value);
} catch (Horde_Mail_Exception $e) {
throw new Horde_Mime_Exception($e);
}

foreach ($addr_list as $ob) {
if ($ob instanceof Horde_Mail_Rfc822_Group) {
Expand Down

0 comments on commit 8b3e25a

Please sign in to comment.