Skip to content

Commit

Permalink
Must catch Horde_Mime_Exception.
Browse files Browse the repository at this point in the history
Horde_Mime_Header code may throw an exception as well.
  • Loading branch information
mrubinsk committed Apr 11, 2015
1 parent 8b3e25a commit 02c54c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/Mime/lib/Horde/Mime/Headers.php
Expand Up @@ -202,6 +202,8 @@ public function addHeader($header, $value, array $opts = array())
} catch (InvalidArgumentException $e) {
/* Ignore an invalid header. */
return;
} catch (Horde_Mime_Exception $e) {
return;
}

switch ($classname) {
Expand Down

0 comments on commit 02c54c9

Please sign in to comment.