Home » File Formats » Contact_Vcard_Parse » Bug #9906
decode base64 encoded data
Details
| Request #9906 | decode base64 encoded data |
|---|---|
| Submitted | 2007-01-21 22:41 UTC |
| From | nonunnet at gmail dot com |
| Assigned | till |
| Status | Closed |
| Package | Contact_Vcard_Parse |
| PHP Version | 4.4.4 |
| OS | Mac 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