Changeset 1576 in subversion
- Timestamp:
- Jun 25, 2008 2:33:10 AM (5 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/lib/Mail/mimePart.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r1570 r1576 1 1 CHANGELOG RoundCube Webmail 2 2 --------------------------- 3 4 2008/06/24 (alec) 5 ---------- 6 - Patched Mail/MimePart.php (http://pear.php.net/bugs/bug.php?id=14232) 3 7 4 8 2008/06/24 (alec) -
trunk/roundcubemail/program/lib/Mail/mimePart.php
r1530 r1576 399 399 $shouldEncode = 0; 400 400 $secondAsterisk = ''; 401 if (preg_match('#([ \x80-\xFF]){1}#', $value)) {401 if (preg_match('#([ \x80-\xFF \*\'\\%\t(\)\<\>\@\,\;\:\\\"/\[\]\?\=]){1}#', $value)) { 402 402 $shouldEncode = 1; 403 403 } elseif ($charset && (strtolower($charset) != 'us-ascii')) { … … 407 407 } 408 408 if ($shouldEncode) { 409 $search = array('%', ' ', "\t"); 410 $replace = array('%25', '%20', '%09'); 411 $encValue = str_replace($search, $replace, $value); 412 $encValue = preg_replace('#([\x80-\xFF])#e', '"%" . strtoupper(dechex(ord("\1")))', $encValue); 409 $encValue = preg_replace('#([\x80-\xFF \*\'\%\t\(\)\<\>\@\,\;\:\\\"/\[\]\?\=])#e', '"%" . strtoupper(dechex(ord("\1")))', $value); 413 410 $value = "$charset'$language'$encValue"; 414 411 $secondAsterisk = '*';
Note: See TracChangeset
for help on using the changeset viewer.
