Skip to content

Commit

Permalink
Sanity checking for incorrect input.
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 28, 2015
1 parent 0badb20 commit 699b17f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions framework/Imap_Client/lib/Horde/Imap/Client/Fetch/Query.php
Expand Up @@ -184,9 +184,12 @@ public function bodyPartSize($id)
*/
public function headers($label, $search, array $opts = array())
{
$this->_data[Horde_Imap_Client::FETCH_HEADERS][$label] = array_merge($opts, array(
'headers' => $search
));
$this->_data[Horde_Imap_Client::FETCH_HEADERS][$label] = array_merge(
$opts,
array(
'headers' => array_map('strval', $search)
)
);
}

/**
Expand Down

0 comments on commit 699b17f

Please sign in to comment.