summaryrefslogtreecommitdiff
path: root/program/include/rcube_vcard.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-04-14 12:46:09 +0000
committeralecpl <alec@alec.pl>2011-04-14 12:46:09 +0000
commit5c4c06665c23d9b8fe3d6a47e15d0b3f6daee368 (patch)
treee47824397aa60c740dec69853e6843fd46f4e47c /program/include/rcube_vcard.php
parentae1db2239e4c2a67f09ecc6d35b70fc7079425bf (diff)
- Fixed vcard folding: use one space, use mb_regex_encoding() (#1487868)
Diffstat (limited to 'program/include/rcube_vcard.php')
-rw-r--r--program/include/rcube_vcard.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_vcard.php b/program/include/rcube_vcard.php
index b2ad43644..086313cc1 100644
--- a/program/include/rcube_vcard.php
+++ b/program/include/rcube_vcard.php
@@ -467,16 +467,16 @@ class rcube_vcard
{
// use mb string function if available
if (function_exists('mb_ereg_replace')) {
- return ":\n " . mb_ereg_replace('(.{70})', "\\1\n ", $matches[1]);
+ return ":\n " . mb_ereg_replace('(.{70})', "\\1\n ", $matches[1]);
}
// chunk_split string and avoid lines breaking multibyte characters
$c = 66;
- $out = ":\n " . substr($matches[1], 0, $c);
+ $out = ":\n " . substr($matches[1], 0, $c);
for ($n = $c; $c < strlen($matches[1]); $c++) {
// break if length > 70 or mutlibyte character starts after position 66
if ($n > 70 || ($n > 66 && ord($matches[1][$c]) >> 6 == 3)) {
- $out .= "\n ";
+ $out .= "\n ";
$n = 0;
}
$out .= $matches[1][$c];