|
|
@ -617,8 +617,8 @@ class rcube_vcard
|
|
|
|
$enc = null;
|
|
|
|
$enc = null;
|
|
|
|
|
|
|
|
|
|
|
|
foreach($regs2[1] as $attrid => $attr) {
|
|
|
|
foreach($regs2[1] as $attrid => $attr) {
|
|
|
|
|
|
|
|
$attr = preg_replace('/[\s\t\n\r\0\x0B]/', '', $attr);
|
|
|
|
if ((list($key, $value) = explode('=', $attr)) && $value) {
|
|
|
|
if ((list($key, $value) = explode('=', $attr)) && $value) {
|
|
|
|
$value = trim($value);
|
|
|
|
|
|
|
|
if ($key == 'ENCODING') {
|
|
|
|
if ($key == 'ENCODING') {
|
|
|
|
$value = strtoupper($value);
|
|
|
|
$value = strtoupper($value);
|
|
|
|
// add next line(s) to value string if QP line end detected
|
|
|
|
// add next line(s) to value string if QP line end detected
|
|
|
@ -797,7 +797,7 @@ class rcube_vcard
|
|
|
|
return $result;
|
|
|
|
return $result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$s = strtr($s, $rep2);
|
|
|
|
$s = trim(strtr($s, $rep2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// some implementations (GMail) use non-standard backslash before colon (#1489085)
|
|
|
|
// some implementations (GMail) use non-standard backslash before colon (#1489085)
|
|
|
|