summaryrefslogtreecommitdiff
path: root/program/steps/mail/search.inc
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:11:36 +0100
commita9308158717265606ba4ad7fa0a290a35904c95d (patch)
treedb76ce79902ad38c1a395e85790a9bf74df6f0a4 /program/steps/mail/search.inc
parent1b0b398778eac83ebc628da657f428456c8b15c1 (diff)
Trim search filter to prevent from creating invalid search criteria when skip_deleted = true.
Diffstat (limited to 'program/steps/mail/search.inc')
-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