summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-03-14 13:11:36 +0100
committerAleksander Machniak <alec@alec.pl>2014-03-14 13:13:08 +0100
commit920322a60981fd22d21f64c34cfb55720620cf59 (patch)
tree6358e33904c6f7540d3997747eb228ecdae98cb1 /program
parent39d3ab17aa0365e2f009fd783485e078adfe5691 (diff)
Trim search filter to prevent from creating invalid search criteria when skip_deleted = true.
Diffstat (limited to 'program')
-rw-r--r--program/steps/mail/search.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/steps/mail/search.inc b/program/steps/mail/search.inc
index a80887254..ba8b124a3 100644
--- a/program/steps/mail/search.inc
+++ b/program/steps/mail/search.inc
@@ -37,6 +37,7 @@ $filter = rcube_utils::get_input_value('_filter', rcube_utils::INPUT_GET);
$headers = rcube_utils::get_input_value('_headers', rcube_utils::INPUT_GET);
$subject = array();
+$filter = trim($filter);
$search_request = md5($mbox.$filter.$str);
// add list filter string