diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-11-22 11:49:30 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-11-22 11:49:30 +0000 |
| commit | d8fd52471ce65d1a71e51173d778eddd52573d3f (patch) | |
| tree | aae44f9b18186ec4d195fcfacea9e67c1c503154 /roundcubemail/program | |
| parent | 3453af093dd0d2eaf311e291f95974652614783f (diff) | |
Remove newlines from mail headers (#1484031)
git-svn-id: https://svn.roundcube.net/trunk@384 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_imap.inc b/roundcubemail/program/include/rcube_imap.inc index c4dfd2023..fafef6791 100644 --- a/roundcubemail/program/include/rcube_imap.inc +++ b/roundcubemail/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) |
