Skip to content

Commit

Permalink
Prevent corruption of $this->_search by holding reference.
Browse files Browse the repository at this point in the history
See PR: 2
  • Loading branch information
mrubinsk committed Feb 11, 2018
1 parent 849f8d2 commit 0ff248c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Horde/Imap/Client/Search/Query.php
Expand Up @@ -95,6 +95,9 @@ public function charset($charset, $convert = true)
}
}

// Unset the reference to avoid corrupting $this->_search below.
unset($val);

foreach (array('header', 'text') as $item) {
if (isset($this->_search[$item])) {
foreach ($this->_search[$item] as $key => $val) {
Expand Down

0 comments on commit 0ff248c

Please sign in to comment.