Skip to content

Commit

Permalink
Don't leak Horde_Imap_Client_Exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 3, 2016
1 parent 3cd3438 commit 6b1d3b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Imap/Adapter.php
Expand Up @@ -190,7 +190,11 @@ public function deleteMessages(array $uids, $folderid)
// the client of the error.
$search_q = new Horde_Imap_Client_Search_Query();
$search_q->ids($ids_obj);
$fetch_res = $imap->search($mbox, $search_q);
try {
$fetch_res = $imap->search($mbox, $search_q);
} catch (Horde_Imap_Client_Exception $e) {
throw new Horde_ActiveSync_Exception($e);
}
if ($fetch_res['count'] != count($uids)) {
$ids_obj = $fetch_res['match'];
}
Expand Down

0 comments on commit 6b1d3b8

Please sign in to comment.