summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-11-22 11:49:30 +0000
committerthomascube <thomas@roundcube.net>2006-11-22 11:49:30 +0000
commitd04d202234b0ba1e65b1c581acf0cbe715120dd7 (patch)
treeeff6a8a22990273612eb9635476b708fe66735b7 /program/include
parent086377c7e648744daa7778673182de496a1b268d (diff)
Remove newlines from mail headers (#1484031)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc
index c4dfd2023..fafef6791 100644
--- a/program/include/rcube_imap.inc
+++ b/program/include/rcube_imap.inc
@@ -2377,7 +2377,8 @@ class rcube_imap
function _parse_address_list($str)
{
- $a = $this->_explode_quoted_string(',', $str);
+ // remove any newlines and carriage returns before
+ $a = $this->_explode_quoted_string(',', preg_replace( "/[\r\n]/", " ", $str));
$result = array();
foreach ($a as $key => $val)