diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-01 17:58:12 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-01 17:58:12 +0000 |
| commit | d065289028e049e8f615c9112dd4c29d4a51a1d8 (patch) | |
| tree | 2031e41b61a692e43a4d25818c613295daaab133 | |
| parent | 65b6067e1391930b0825c445d4a498cf622745ca (diff) | |
Hard-wrap message headers according to RFC
git-svn-id: https://svn.roundcube.net/trunk@2440 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/include/rcube_mail_mime.php | 2 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/sendmail.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_mail_mime.php b/roundcubemail/program/include/rcube_mail_mime.php index f59354fea..ab93d3a70 100644 --- a/roundcubemail/program/include/rcube_mail_mime.php +++ b/roundcubemail/program/include/rcube_mail_mime.php @@ -180,7 +180,7 @@ class rcube_mail_mime extends Mail_mime } } - $input[$hdr_name] = $hdr_value; + $input[$hdr_name] = wordwrap($hdr_value, 990, "\n", true); // hard limit header length } return $input; diff --git a/roundcubemail/program/steps/mail/sendmail.inc b/roundcubemail/program/steps/mail/sendmail.inc index 34e2c0904..742322602 100644 --- a/roundcubemail/program/steps/mail/sendmail.inc +++ b/roundcubemail/program/steps/mail/sendmail.inc @@ -226,7 +226,7 @@ if (!empty($identity_arr['bcc'])) $headers['Bcc'] = ($headers['Bcc'] ? $headers['Bcc'].', ' : '') . $identity_arr['bcc']; // add subject -$headers['Subject'] = trim(get_input_value('_subject', RCUBE_INPUT_POST, FALSE, $message_charset)); +$headers['Subject'] = trim(get_input_value('_subject', RCUBE_INPUT_POST, TRUE, $message_charset)); if (!empty($identity_arr['organization'])) $headers['Organization'] = $identity_arr['organization']; |
