Changeset b5a29fe in github
- Timestamp:
- Oct 26, 2011 9:53:30 AM (19 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
- Children:
- 335b042
- Parents:
- ea66cef
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/steps/mail/sendmail.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r39cafac rb5a29fe 2 2 =========================== 3 3 4 - Fix IDN address validation issue (#1488137) 5 - Fix JS error when dst_active checkbox doesn't exist (#1488133) 4 6 - Autocomplete LDAP records when adding contacts from mail (#1488073) 5 7 - Plugin API: added 'ready' hook (#1488063) -
program/steps/mail/sendmail.inc
r765fdeb rb5a29fe 160 160 // address in brackets without name (do nothing) 161 161 if (preg_match('/^<'.$email_regexp.'>$/', $item)) { 162 $item = rcube_idn_to_ascii( $item);163 $result[] = $item;162 $item = rcube_idn_to_ascii(trim($item, '<>')); 163 $result[] = '<' . $item . '>'; 164 164 // address without brackets and without name (add brackets) 165 165 } else if (preg_match('/^'.$email_regexp.'$/', $item)) { 166 166 $item = rcube_idn_to_ascii($item); 167 $result[] = '<' .$item.'>';167 $result[] = '<' . $item . '>'; 168 168 // address with name (handle name) 169 } else if (preg_match('/ '.$email_regexp.'>*$/', $item, $matches)) {169 } else if (preg_match('/<*'.$email_regexp.'>*$/', $item, $matches)) { 170 170 $address = $matches[0]; 171 171 $name = str_replace($address, '', $item); … … 175 175 $name = '"'.addcslashes($name, '"').'"'; 176 176 } 177 $address = rcube_idn_to_ascii($address); 178 if (!preg_match('/^<'.$email_regexp.'>$/', $address)) 179 $address = '<'.$address.'>'; 177 $address = rcube_idn_to_ascii(trim($address, '<>')); 178 $address = '<' . $address . '>'; 180 179 181 180 $result[] = $name.' '.$address;
Note: See TracChangeset
for help on using the changeset viewer.
