Changeset 0c6f4b8 in github for program/include/rcube_imap.inc
- Timestamp:
- Mar 21, 2008 9:29:12 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 846dd74
- Parents:
- 46bc52b
- File:
-
- 1 edited
-
program/include/rcube_imap.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_imap.inc
r52f8caf r0c6f4b8 2273 2273 $a = $this->_parse_address_list($input, $decode); 2274 2274 $out = array(); 2275 // Special chars as defined by RFC 822 need to in quoted string (or escaped). 2276 $special_chars = '[\(\)\<\>\\\.\[\]@,;:"]'; 2275 2277 2276 2278 if (!is_array($a)) … … 2286 2288 $name = preg_replace(array('/^[\'"]/', '/[\'"]$/'), '', trim($val['name'])); 2287 2289 if ($name && $address && $name != $address) 2288 $string = sprintf('%s <%s>', preg_match( '/[,;<>]/', $name) ? '"'.addcslashes($name, '"').'"' : $name, $address);2290 $string = sprintf('%s <%s>', preg_match("/$special_chars/", $name) ? '"'.addcslashes($name, '"').'"' : $name, $address); 2289 2291 else if ($address) 2290 2292 $string = $address;
Note: See TracChangeset
for help on using the changeset viewer.
