summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-09-09 16:50:14 +0200
committerAleksander Machniak <alec@alec.pl>2012-09-09 16:52:27 +0200
commit3458439ad0fc7e918dae1788aeae4d0f6121c120 (patch)
tree2c05f4a5a41b9210a6cd49e2fd09dcc41b97fce9 /program/include
parent4938a0bcfb0eb6ea89a6504c6f82afbca9c58c61 (diff)
Fix encoding vCard file when contains PHOTO;ENCODING=b (#1488683)
Conflicts: tests/Framework/VCard.php
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_vcard.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/include/rcube_vcard.php b/program/include/rcube_vcard.php
index c07b4042a..a6dbbf3c1 100644
--- a/program/include/rcube_vcard.php
+++ b/program/include/rcube_vcard.php
@@ -558,6 +558,7 @@ class rcube_vcard
if ((list($key, $value) = explode('=', $attr)) && $value) {
$value = trim($value);
if ($key == 'ENCODING') {
+ $value = strtoupper($value);
// add next line(s) to value string if QP line end detected
if ($value == 'QUOTED-PRINTABLE') {
while (preg_match('/=$/', $lines[$i]))