Changeset 5c4c066 in github
- Timestamp:
- Apr 14, 2011 8:46:09 AM (2 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 569f830
- Parents:
- ae1db223
- Location:
- program/include
- Files:
-
- 2 edited
-
iniset.php (modified) (1 diff)
-
rcube_vcard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/include/iniset.php
re224b00 r5c4c066 75 75 76 76 // set internal encoding for mbstring extension 77 if (extension_loaded('mbstring'))77 if (extension_loaded('mbstring')) { 78 78 mb_internal_encoding(RCMAIL_CHARSET); 79 79 @mb_regex_encoding(RCMAIL_CHARSET); 80 } 80 81 81 82 /** -
program/include/rcube_vcard.php
rae1db223 r5c4c066 468 468 // use mb string function if available 469 469 if (function_exists('mb_ereg_replace')) { 470 return ":\n " . mb_ereg_replace('(.{70})', "\\1\n", $matches[1]);470 return ":\n " . mb_ereg_replace('(.{70})', "\\1\n ", $matches[1]); 471 471 } 472 472 473 473 // chunk_split string and avoid lines breaking multibyte characters 474 474 $c = 66; 475 $out = ":\n " . substr($matches[1], 0, $c);475 $out = ":\n " . substr($matches[1], 0, $c); 476 476 for ($n = $c; $c < strlen($matches[1]); $c++) { 477 477 // break if length > 70 or mutlibyte character starts after position 66 478 478 if ($n > 70 || ($n > 66 && ord($matches[1][$c]) >> 6 == 3)) { 479 $out .= "\n ";479 $out .= "\n "; 480 480 $n = 0; 481 481 }
Note: See TracChangeset
for help on using the changeset viewer.
