From 3458439ad0fc7e918dae1788aeae4d0f6121c120 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sun, 09 Sep 2012 10:52:27 -0400
Subject: [PATCH] Fix encoding vCard file when contains PHOTO;ENCODING=b (#1488683)

---
 program/include/rcube_vcard.php |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/program/include/rcube_vcard.php b/program/include/rcube_vcard.php
index c07b404..a6dbbf3 100644
--- a/program/include/rcube_vcard.php
+++ b/program/include/rcube_vcard.php
@@ -558,6 +558,7 @@
           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]))

--
Gitblit v1.9.1