PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » Contact_Vcard_Parse » Bug #9906

decode base64 encoded data

Details

Request #9906decode base64 encoded data
Submitted2007-01-21 22:41 UTC
Fromnonunnet at gmail dot com
Assignedtill
StatusClosed
PackageContact_Vcard_Parse
PHP Version4.4.4
OSMac OS X.4 and Ubuntu linux
Roadmaps(Not assigned)

Comments

[2007-01-21 22:41 UTC] nonunnet at gmail dot com

Description:
------------
BASE64 decode code for "LOGO" and "PHOTO"

--- /Users/nonun/Desktop/Contact_Vcard_Parse-1.31.0/Contact_Vcard_Parse-1.31.0/Contact_Vcard_Parse.php 2005-05-29 00:40:17.000000000 +0900
+++ Parse.php 2007-01-22 07:30:04.000000000 +0900
@@ -610,6 +610,9 @@
if (trim(strtoupper($enc_val)) == 'QUOTED-PRINTABLE') {
$text = quoted_printable_decode($text);
return;
+ }else if (trim(strtoupper($enc_val)) == 'BASE64') {
+ $text = base64_decode($text);
+ return;
}
}
}

Test script:
---------------
this is patch

Expected result:
----------------
this is patch

Actual result:
--------------
this is patch