summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-08 20:28:14 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-08 20:28:14 +0200
commitc7357ea32010ecd7f11b8df1e64abece403ec034 (patch)
tree007a288d57c81bc4ebd124ff0defaee5beacfefa /program
parentd22d119e3819b9c6722a751ba8fe64de3a9aeb5a (diff)
parentceff79b14a856a91a627b1a4a5eba445c862351b (diff)
Merge branch 'release-1.0' of github.com:roundcube/roundcubemail into release-1.0
Diffstat (limited to 'program')
-rw-r--r--program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 072ee716c..e93e2f600 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1984,7 +1984,7 @@ function rcmail_search_filter($attrib)
$ctypes = array('application/', 'multipart/m', 'multipart/signed', 'multipart/report');
// Build search string of "with attachment" filter
- $attachment = str_repeat(' OR', count($ctypes)-1);
+ $attachment = trim(str_repeat(' OR', count($ctypes)-1));
foreach ($ctypes as $type) {
$attachment .= ' HEADER Content-Type ' . rcube_imap_generic::escape($type);
}