Hard-wrap message headers according to RFC
| | |
| | | } |
| | | } |
| | | |
| | | $input[$hdr_name] = $hdr_value; |
| | | $input[$hdr_name] = wordwrap($hdr_value, 990, "\n", true); // hard limit header length |
| | | } |
| | | |
| | | return $input; |
| | |
| | | $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']; |