Changeset acff900 in github
- Timestamp:
- Oct 8, 2008 4:42:59 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- e51ef05
- Parents:
- 89bafae
- File:
-
- 1 edited
-
program/steps/mail/sendmail.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/steps/mail/sendmail.inc
rfd51e0f racff900 146 146 $message_charset = isset($_POST['_charset']) ? $_POST['_charset'] : $input_charset; 147 147 148 $mailto_regexp = array('/[,;]\s*[\r\n]+/', '/[\r\n]+/', '/[,;]\s*$/m', '/;/' );149 $mailto_replace = array(', ', ', ', '', ',' );150 151 // replace new lines and strip ending ', ' 148 $mailto_regexp = array('/[,;]\s*[\r\n]+/', '/[\r\n]+/', '/[,;]\s*$/m', '/;/', '/(\S{1})(<\S+@\S+>)/U'); 149 $mailto_replace = array(', ', ', ', '', ',', '\\1 \\2'); 150 151 // replace new lines and strip ending ', ', make address strings more valid also 152 152 $mailto = preg_replace($mailto_regexp, $mailto_replace, get_input_value('_to', RCUBE_INPUT_POST, TRUE, $message_charset)); 153 153 $mailcc = preg_replace($mailto_regexp, $mailto_replace, get_input_value('_cc', RCUBE_INPUT_POST, TRUE, $message_charset));
Note: See TracChangeset
for help on using the changeset viewer.
