Fix so exported vCard specifies encoding in v3-compatible format (#1489183)

Conflicts:

	CHANGELOG
pull/88/head
Aleksander Machniak 12 years ago
parent 85f756737f
commit dd12eec622

@ -1,6 +1,8 @@
CHANGELOG Roundcube Webmail
===========================
- Fix so exported vCard specifies encoding in v3-compatible format (#1489183)
RELEASE 0.9.2
-------------
- Fix image thumbnails display in print mode (#1489134)

@ -714,11 +714,17 @@ class rcube_vcard
$value[] = $attrvalues;
}
else if (is_bool($attrvalues)) {
// true means just tag, not tag=value, as in PHOTO;BASE64:...
// true means just a tag, not tag=value, as in PHOTO;BASE64:...
if ($attrvalues) {
// vCard v3 uses ENCODING=B (#1489183)
if ($attrname == 'base64') {
$attr .= ";ENCODING=B";
}
else {
$attr .= strtoupper(";$attrname");
}
}
}
else {
foreach((array)$attrvalues as $attrvalue) {
$attr .= strtoupper(";$attrname=") . self::vcard_quote($attrvalue, ',');

Loading…
Cancel
Save