Open wking0702 opened 1 year ago
In the \PhpImap\DataPartInfo::decodeAfterFetch method, the "imap_binary" function is used when processing ENCBINARY encoding. But "imap_binary" returns "base64 string" (details: https://www.php.net/manual/en/function.imap-binary.php).
Bug in this possition: src/PhpImap/DataPartInfo.php#L98
For test: run code print imap_binary("Plain text"); and print base64_decode(imap_binary("Plain text"));
print imap_binary("Plain text");
print base64_decode(imap_binary("Plain text"));
Please fix this bug.
In the \PhpImap\DataPartInfo::decodeAfterFetch method, the "imap_binary" function is used when processing ENCBINARY encoding. But "imap_binary" returns "base64 string" (details: https://www.php.net/manual/en/function.imap-binary.php).
Bug in this possition: src/PhpImap/DataPartInfo.php#L98
For test: run code
print imap_binary("Plain text");
andprint base64_decode(imap_binary("Plain text"));
Please fix this bug.